aboutsummaryrefslogtreecommitdiffstats
path: root/main/samba/samba.logrotate
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-06-13 15:35:58 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-06-13 15:31:13 +0200
commitdca8775e0747e536f416695bc1decfca0dc7c59e (patch)
treed9c71cb47296c4f1b54e9703bd45698a15386ab3 /main/samba/samba.logrotate
parentc9c5c29e3af0c3fead59ec5aa80b21992f6d656d (diff)
downloadaports-dca8775e0747e536f416695bc1decfca0dc7c59e.tar.bz2
aports-dca8775e0747e536f416695bc1decfca0dc7c59e.tar.xz
main/samba: fix logrotate, use init script to reload samba
Diffstat (limited to 'main/samba/samba.logrotate')
-rw-r--r--main/samba/samba.logrotate14
1 files changed, 7 insertions, 7 deletions
diff --git a/main/samba/samba.logrotate b/main/samba/samba.logrotate
index bf957bd747..88abb909ee 100644
--- a/main/samba/samba.logrotate
+++ b/main/samba/samba.logrotate
@@ -1,9 +1,9 @@
/var/log/samba/log.* /var/log/samba/*.log {
- notifempty
- missingok
- sharedscripts
- copytruncate
- postrotate
- /bin/kill -HUP `cat /var/run/samba/*.pid 2>/dev/null` 2>/dev/null || true
- endscript
+ notifempty
+ missingok
+ sharedscripts
+ copytruncate
+ postrotate
+ /etc/init.d/samba --quiet --ifstarted reload
+ endscript
}