Revision 722695d4
Added by Ewoud Kohl van Wijngaarden almost 6 years ago
debian/xenial/foreman-proxy/logrotate | ||
---|---|---|
compress
|
||
daily
|
||
postrotate
|
||
[ -e /etc/init.d/foreman-proxy ] && /etc/init.d/foreman-proxy logrotate >/dev/null 2>&1 || true
|
||
if [ -d /run/systemd/system ] ; then
|
||
/bin/systemctl kill --signal=SIGUSR1 foreman-proxy >/dev/null 2>&1 || true
|
||
elif [ -e /etc/init.d/foreman-proxy ] ; then
|
||
/etc/init.d/foreman-proxy logrotate >/dev/null 2>&1 || true
|
||
fi
|
||
endscript
|
||
}
|
Also available in: Unified diff
Fix foreman-proxy logrotate with systemd