diff options
author | Peter Palfrader <peter@palfrader.org> | 2003-01-14 06:27:41 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2003-01-14 06:27:41 +0000 |
commit | 7a3bf2431b20ce0bfa7ec1cbc782975e687ef4d7 (patch) | |
tree | 5643d0bea4d9146942050adc334eed35f98b0933 /pingd | |
parent | 1b5fed479a31e06829a714f7ac520b0f101642ff (diff) |
Documenting new requirements
Reopen log on SIGHUP
Diffstat (limited to 'pingd')
-rwxr-xr-x | pingd | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3,7 +3,7 @@ $| = 1; # (c) 2002 Peter Palfrader <peter@palfrader.org> -# $Id: pingd,v 1.87 2003/01/14 05:25:34 weasel Exp $ +# $Id: pingd,v 1.88 2003/01/14 06:27:41 weasel Exp $ # =pod @@ -310,6 +310,7 @@ sub setSigHandlers() { open (STDOUT, ">>output") or die ("Cannot open 'output' as STDOUT\n"); open (STDERR, ">&STDOUT") or die ("Cannot dup STDOUT as STDERR\n"); }; + Echolot::Log::reopen(); }; $SIG{'INT'} = sub { Echolot::Log::info("Got SIGINT. scheduling exit"); @@ -485,7 +486,7 @@ sub daemon_run($) { Echolot::Globals::get()->{'storage'}->finish(); unlink (Echolot::Config::get()->{'pidfile'}) or - cluck ("Cannot unlink pidfile ".Echolot::Config::get()->{'pidfile'}); + Echolot::Log::warn ("Cannot unlink pidfile ".Echolot::Config::get()->{'pidfile'}."."); }; sub send_sig($) { |