Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Aug 2004 21:16:17 -0700
From:      Joshua Tinnin <krinklyfig@spymac.com>
To:        "FreeBSD-questions" <freebsd-questions@freebsd.org>
Subject:   Restarting swatch when log turns over?
Message-ID:  <200408032116.17573.krinklyfig@spymac.com>

next in thread | raw e-mail | index | archive | help
I hope this isn't too OT ...

How would I restart swatch when a log turns over? As of now, when a log turns 
over, swatch continues running but doesn't read the new log. I thought maybe 
I could use 

watchfor  /newsyslog/
        exec killall -HUP swatch

in .swatchrc to match the newsyslog string, but when I try the command there 
is no process matching swatch (it's running), and I don't know how to 
reference the PID in such a situation (and use kill -HUP instead). Or does 
swatch need to be restarted in this situation? Or maybe should newsyslog be 
told to restart swatch (not sure how to do this)? I've read through the man 
pages and searched the mailing list archives, and am not turning up 
anything ...

- jt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408032116.17573.krinklyfig>