summaryrefslogtreecommitdiffstats
path: root/network/exim/contrib/exim.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'network/exim/contrib/exim.logrotate')
-rw-r--r--network/exim/contrib/exim.logrotate13
1 files changed, 6 insertions, 7 deletions
diff --git a/network/exim/contrib/exim.logrotate b/network/exim/contrib/exim.logrotate
index d8fcda7f6f..36b542b5f4 100644
--- a/network/exim/contrib/exim.logrotate
+++ b/network/exim/contrib/exim.logrotate
@@ -1,9 +1,8 @@
/var/log/exim/*.log {
- su exim exim
- missingok
- notifempty
- sharedscripts
- postrotate
- /usr/bin/pkill -HUP -u exim
- endscript
+ missingok
+ notifempty
+ sharedscripts
+ postrotate
+ /bin/kill -HUP $(cat /var/run/exim.pid 2>/dev/null) 2>/dev/null || /usr/bin/true
+ endscript
}