]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix systemd version of the logrotate script
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 20 Apr 2018 10:26:05 +0000 (11:26 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 20 Apr 2018 10:37:29 +0000 (11:37 +0100)
debian/rspamd.logrotate

index dca9cfadf6626abd773ef0f15b0751eff2ca4feb..f486a473877442e2cdfc7d0a7be49a5382a2dd2d 100644 (file)
@@ -6,7 +6,7 @@
        notifempty
        missingok
        postrotate
-          service rspamd reopenlog >/dev/null 2>&1 || true
+          if [ -f /bin/systemctl ] ; then systemctl --signal USR1 kill rspamd.service ; else service rspamd reopenlog >/dev/null 2>&1 ; fi || true
        endscript
 }