On 2015-03-02 18:17:00 +0000, Gregory Farnum said:
I'm not very (well, at all, for rgw) familiar with these scripts, but
how are you starting up your RGW daemon? There's some way to have
Apache handle the process instead of Upstart, but Yehuda says "you
don't want to do it".
-Greg
Well, we installed the packages via APT. That places the upstart
scripts into /etc/init. Nothing special. That will make Upstart
launch them in boot.
In the meantime I just placed
/var/log/radosgw/*.log {
rotate 7
daily
compress
sharedscripts
postrotate
start-stop-daemon --stop --signal HUP -x /usr/bin/radosgw --oknodo
endscript
missingok
notifempty
}
into the logrotate script, removing the more complicated (and not working :))
logic with the core piece from the regular init.d script.
Because the daemons were already running and using an already deleted script,
logrotate wouldn't see the need to rotate the (visible) ones, because they
had not changed. So I needed to manually execute the above start-stop-daemon
on all relevant nodes ones to force the gateway to start a new, non-deleted
logfile.
Daniel
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com