diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-24 13:28:42 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-24 13:28:42 +0000 |
commit | 191adfdc7f5da7be8505381af9f47c86e35f1f4b (patch) | |
tree | 765f681f220d5548bd9fdf664880d22555aae9fe | |
parent | 9e23ac207412a6869b4a372dc15a47bec07586d9 (diff) |
Fix the launcher for two situations:
* pid file defined, but in a comment (ignore it)
* pid file not defined, because its no longer manditory (assume configdir/inspircd.pid)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6097 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | .inspircd.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.inspircd.inc b/.inspircd.inc index 54737fdd7..6328bbd00 100644 --- a/.inspircd.inc +++ b/.inspircd.inc @@ -222,7 +222,7 @@ sub getpidfile { my $tmp = join("",@lines); # Does this file have a pid? - if ($tmp =~ /<pid file=\"(\S+)\">/i) { + if (($tmp =~ /<pid file=\"(\S+)\">/i) && ($tmp !~ /^#/)) { # Set the PID file and return. $pidfile = $1; return; @@ -242,7 +242,8 @@ sub getpidfile { } } else { # End of includes / No includes found. - return $confpath . "inspircd.pid"; + $pidfile = $confpath . "inspircd.pid"; + return; } } } |