[Pkg-samba-maint] [samba] 03/03: logrotate: Only reload smbd when needed. Thanks Roland Hieber. Closes: #838796
Mathieu Parent
sathieu at moszumanska.debian.org
Sun Oct 9 19:57:58 UTC 2016
This is an automated email from the git hooks/post-receive script.
sathieu pushed a commit to branch master
in repository samba.
commit bf265c694a3b335d0cff58678104a7eee5534f5a
Author: Mathieu Parent <math.parent at gmail.com>
Date: Sun Oct 9 21:56:55 2016 +0200
logrotate: Only reload smbd when needed. Thanks Roland Hieber. Closes: #838796
---
debian/samba.logrotate | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/samba.logrotate b/debian/samba.logrotate
index 3788020..7683d03 100644
--- a/debian/samba.logrotate
+++ b/debian/samba.logrotate
@@ -3,7 +3,7 @@
missingok
rotate 7
postrotate
- /etc/init.d/smbd reload > /dev/null
+ [ ! -f /var/run/samba/smbd.pid ] || /etc/init.d/smbd reload > /dev/null
endscript
compress
notifempty
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-samba/samba.git
More information about the Pkg-samba-maint
mailing list