aboutsummaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-20 11:26:05 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-20 11:37:29 +0100
commitbf8f9c32e35f58d1da9ea4bf91b392bcff8f70c6 (patch)
tree6898fd88e73053477c781827162a44497dcbbe54 /debian
parent694739f6b068583d6a9d0137b8864a6c5d57c0b1 (diff)
downloadrspamd-bf8f9c32e35f58d1da9ea4bf91b392bcff8f70c6.tar.gz
rspamd-bf8f9c32e35f58d1da9ea4bf91b392bcff8f70c6.zip
[Fix] Fix systemd version of the logrotate script
Diffstat (limited to 'debian')
-rw-r--r--debian/rspamd.logrotate2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/rspamd.logrotate b/debian/rspamd.logrotate
index dca9cfadf..f486a4738 100644
--- a/debian/rspamd.logrotate
+++ b/debian/rspamd.logrotate
@@ -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
}