[Pkg-samba-maint] [samba] 03/10: logrotate: Only reload smbd when needed. Thanks Roland Hieber. Closes: #838796

Mathieu Parent sathieu at moszumanska.debian.org
Wed Oct 19 20:02:29 UTC 2016


This is an automated email from the git hooks/post-receive script.

sathieu pushed a commit to branch experimental
in repository samba.

commit 2a2a5492d883ce522dc2e4b81303974e43135454
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
    
    (cherry picked from commit bf265c694a3b335d0cff58678104a7eee5534f5a)
---
 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