[CUWiN-Dev] hellowdog + newsyslog

David Young dyoung at pobox.com
Mon Oct 10 01:50:28 CDT 2005


On Sun, Oct 09, 2005 at 10:00:19PM -0500, Bill Comisky wrote:
> 
> /var/log/hellowdog isn't currently rotated by newsyslog.  The patch below 
> traps SIGUSR1 in hellowdog and calls '/etc/rc.d/hellowdog restart'.  The 
> newsyslog.conf file is modified to send SIGUSR1 to the hellowdog process 
> (HUP is already used to reset the timer).
> 
> Is this the "right" way to do this?  Any better signal to use that USR1?
> Let me know & I'll commit.

I am uneasy with restarting hellowdog, because if it cannot restart,
either we get an (arguably) spurious reboot, or we lose hellowdog's
"liveness" guarantee.

Have a look at the script I have attached.  It reopens its log file when
it gets a SIGUSR1.

Dave

-- 
David Young             OJC Technologies
dyoung at ojctech.com      Urbana, IL * (217) 278-3933
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reopen.sh
Type: application/x-sh
Size: 310 bytes
Desc: not available
Url : http://lists.chambana.net/mailman/archive/cu-wireless-dev/attachments/20051010/5dd68705/reopen.sh


More information about the CU-Wireless-Dev mailing list