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 = "";
|
$conf_file = "";
|
||||||
$make_daemon = $NO;
|
$make_daemon = $NO;
|
||||||
$output_to_logfile = $YES;
|
$output_to_logfile = $YES;
|
||||||
|
$write_pid = $YES;
|
||||||
|
|
||||||
$i = -1;
|
$i = -1;
|
||||||
while ($i < $#ARGV) {
|
while ($i < $#ARGV) {
|
||||||
|
@ -506,7 +507,7 @@ if ($make_daemon == $YES) {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Create pidfile
|
# Create pidfile
|
||||||
if (write_pid == $YES) {
|
if ($write_pid == $YES) {
|
||||||
open PIDFILE, ">$pidFile" or die "$PROGRAM_NAME: Can't open $pidFile: $!\n";
|
open PIDFILE, ">$pidFile" or die "$PROGRAM_NAME: Can't open $pidFile: $!\n";
|
||||||
print PIDFILE $$;
|
print PIDFILE $$;
|
||||||
close PIDFILE;
|
close PIDFILE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue