On 09/13/2011 09:58 AM, Bradley Scalio wrote:
Thanks for the great turnaround!

One final question then on logging. With logrotate usually a postrotate sighup
on the pidfile will cause the process to then write to the new logs, but this
isn't working either for qpid when running in daemon mode:

compress
/var/log/qpidd.log {
missingok
notifempty
daily
rotate 5
create 0660 awips fxalpha
postrotate
/bin/kill -HUP `cat /awips2/qpid/var/run/qpidd.pid 2> /dev/null` 2> /dev/null ||
true
endscript
}

Is there another way to which a sighup can be sent to qpidd to have to write to
the new logfile?

Not presently, qpidd ignores SIGHUP. Open a JIRA for this, with details of what you want qpidd to do on SIGUP.

Meantime perhaps you can go via syslog:

# qpidd.conf
log-to-syslog=yes
# syslog.conf
qpidd.*=/var/log/qpidd
# logrotate config for qpidd
           postrotate
               /usr/bin/killall -HUP syslogd

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to