try it with the option -p when you start syslog-ng and give the location of the pid file where you want it. syslog-ng -f /etc/syslog-ng/syslog-ng.conf -p /var/run/syslogd.pid dennis ----- Original Message ----- From: "Simeon Johnston" <simeonuj@eetc.com> To: "Syslog-ng" <syslog-ng@lists.balabit.hu> Sent: Friday, April 06, 2001 9:41 PM Subject: [syslog-ng]Logrotate problems
I am trying to rotate the logs but am having problems with logrotate. This may not be a problem with syslog-ng. This is the command used.
/var/log/logfile { postrotate /usr/bin/killall -HUP `cat /var/run/syslog-ng.pid` endscript }
The problem with this is that the syslog-ng.pid file seems to be generated in whatever directory you started syslog-ng from instead of /var/run/*. Is this a configuration problem of the system? If a system problem how do I go about fixing it ( if this is not too far off topic )? Is there a simpler way to send an HUP signal?
I am using Redhat-6.2 on an ALPHA with syslog-ng 1.4.11.
Thanks, sim
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng