From f494776ba0b7d0098e6bbf624def9656b69516fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sven=20H=C3=B6xter?= Date: Fri, 21 Sep 2018 16:48:36 +0200 Subject: [PATCH] use invoke-rc.d in logrotate postrotate action invoke-rc.d is able to handle SysV init scripts and systemd, thus it makes sense to be Debian policy conform and use that, instead of forcing the usage of the init script. --- packaging/debian/logrotate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/debian/logrotate b/packaging/debian/logrotate index cfec49ca..158ffbbb 100644 --- a/packaging/debian/logrotate +++ b/packaging/debian/logrotate @@ -7,6 +7,6 @@ create 0640 mamonsu mamonsu sharedscripts postrotate - [ -e /var/run/mamonsu/mamonsu.pid ] && /etc/init.d/mamonsu restart >/dev/null + [ -e /var/run/mamonsu/mamonsu.pid ] && invoke-rc.d mamonsu restart > /dev/null endscript }