Problems regarding the writing of pidfiles resolved.
This commit is contained in:
parent
5d4d7ac7ca
commit
b6fbe49e84
1 changed files with 2 additions and 1 deletions
|
@ -460,6 +460,7 @@ $YES = 1;
|
|||
$conf_file = "";
|
||||
$make_daemon = $NO;
|
||||
$output_to_logfile = $YES;
|
||||
$write_pid = $YES;
|
||||
|
||||
$i = -1;
|
||||
while ($i < $#ARGV) {
|
||||
|
@ -506,7 +507,7 @@ if ($make_daemon == $YES) {
|
|||
}
|
||||
|
||||
# Create pidfile
|
||||
if (write_pid == $YES) {
|
||||
if ($write_pid == $YES) {
|
||||
open PIDFILE, ">$pidFile" or die "$PROGRAM_NAME: Can't open $pidFile: $!\n";
|
||||
print PIDFILE $$;
|
||||
close PIDFILE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue