diff options
Diffstat (limited to 'examples/logrotate.conf')
-rw-r--r-- | examples/logrotate.conf | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/logrotate.conf b/examples/logrotate.conf index ebc92a5..b0d1351 100644 --- a/examples/logrotate.conf +++ b/examples/logrotate.conf @@ -25,6 +25,11 @@ # config. yahns supports the USR1 signal and we send it # as our "lastaction" action: lastaction + # systemd users do not have PID files, + # only signal the @1 process since the @2 is short-lived + # and only runs while @1 is restarting. + systemctl kill -s SIGUSR1 yahns@1.service + # assuming your pid file is in /var/run/yahns_app/pid pid=/var/run/yahns_app/pid test -s $pid && kill -USR1 "$(cat $pid)" |