version 1.473, 2011/05/14 15:47:01
|
version 1.474, 2011/05/14 16:12:53
|
Line 6093 sub HUPSMAN { # sig
|
Line 6093 sub HUPSMAN { # sig
|
# |
# |
sub ReloadApache { |
sub ReloadApache { |
# --------------------------- Handle case of another apachereload process (locking) |
# --------------------------- Handle case of another apachereload process (locking) |
my $execdir = $perlvar{'lonDaemons'}; |
if (&LONCAPA::try_to_lock('/tmp/lock_apachereload')) { |
my $script = $execdir."/apachereload"; |
my $execdir = $perlvar{'lonDaemons'}; |
system($script); |
my $script = $execdir."/apachereload"; |
|
system($script); |
|
unlink('/tmp/lock_apachereload'); # Remove the lock file. |
|
} |
} |
} |
|
|
# |
# |