diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-24 01:44:29 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-24 01:44:29 +0000 |
commit | c8026bc2d73344e1df526f0a80694046efa4b22a (patch) | |
tree | 539e3bca92733aeff631fad70ecc6722550ef0b0 /.inspircd.inc | |
parent | 58895f9b1daa1e13927462d046a36dec853a40e0 (diff) |
Move configuration filename specification to start script, to reduce hardcoded paths in executable
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11759 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to '.inspircd.inc')
-rw-r--r-- | .inspircd.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.inspircd.inc b/.inspircd.inc index 362bdcf67..91a06ccfd 100644 --- a/.inspircd.inc +++ b/.inspircd.inc @@ -25,7 +25,7 @@ my $version = "@VERSION@"; our($pid,$pidfile); # Lets see what they want to do.. Set the variable (Cause i'm a lazy coder) my $arg = shift(@ARGV); -my $conf = $confpath . "inspircd.conf"; +my $conf; for my $a (@ARGV) { if ($a =~ m/^--config=(.*)$/) @@ -34,6 +34,11 @@ for my $a (@ARGV) last; } } +if (!defined $conf) { + $conf = $confpath . "inspircd.conf"; + push @ARGV, '--config='.$conf; +} + getpidfile($conf); # System for naming script command subs: |