Restarting swatch when log turns over?
Joshua Tinnin
krinklyfig at spymac.com
Tue Aug 3 21:16:10 PDT 2004
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
More information about the freebsd-questions
mailing list