aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-11 09:51:03 +0100
committerGitHub <noreply@github.com>2019-08-11 09:51:03 +0100
commit22ef30cfeca05d3eaa6fc570959232798cc82de3 (patch)
tree0590570efd97870bb2f548d54d05760f158d6387
parenta7c906a2ae3381e20d1c30a318e519c9c9310128 (diff)
parent69a01b6d670d1c2fb310271d6d0398cda843053c (diff)
downloadrspamd-22ef30cfeca05d3eaa6fc570959232798cc82de3.tar.gz
rspamd-22ef30cfeca05d3eaa6fc570959232798cc82de3.zip
Merge pull request #3001 from citrin/logrotate
[Minor] Simplify logrotate postrotate script
-rw-r--r--centos/sources/rspamd.logrotate.systemd4
1 files changed, 2 insertions, 2 deletions
diff --git a/centos/sources/rspamd.logrotate.systemd b/centos/sources/rspamd.logrotate.systemd
index f6536d058..ea1b02d7c 100644
--- a/centos/sources/rspamd.logrotate.systemd
+++ b/centos/sources/rspamd.logrotate.systemd
@@ -6,6 +6,6 @@
compress
sharedscripts
postrotate
- export `systemctl -p MainPID show rspamd.service`; if [ -n "$MainPID" ]; then kill -USR1 $MainPID; fi
+ systemctl --signal=USR1 --kill-who=main kill rspamd.service 2>/dev/null || :
endscript
-} \ No newline at end of file
+}