Sounds slightly beyond the mandate of newsyslog(8). Although instead
of a path-to-PID, a glob to pass to pkill(8) -HUP ${glob} would be on my
NFR list.
At that point, logrotate(8) may seem appealing (or a custom solution):
postrotate/endscript
The lines between postrotate
On 2007-03-16 19:22, Jos? Pablo Fern?ndez <[EMAIL PROTECTED]> wrote:
> Hello,
> I need to rotate some logs, but instead of getting the PID out of a
> file and sending a SIGHUP to that process, like newsyslog does, I need
> to run a command.
> Is that possible with newsyslog? how should I do it?
No
Hello,
I need to rotate some logs, but instead of getting the PID out of a file and
sending a SIGHUP to that process, like newsyslog does, I need to run a
command.
Is that possible with newsyslog? how should I do it?
Thank you.
--
José Pablo Fernández
[EMAIL PROTECTED]
__