From 8a2454d4490abb4860fa9ebc83c8bda8ed8aa260 Mon Sep 17 00:00:00 2001 From: Raghavendra Talur Date: Thu, 5 Jun 2014 18:24:56 +0530 Subject: extras/hookscripts: When set option disables smb, don't start smb. When user.smb or user.cifs option is set to disable, we remove the share options from smb.conf. If smb process is running, a sighup is required but we should not start the process if its not running. Change-Id: I1e2163ff209ba858380f7da459ff1dba3cf673f2 BUG: 1105123 Signed-off-by: Raghavendra Talur Reviewed-on: http://review.gluster.org/7994 Reviewed-by: Poornima G Reviewed-by: Niels de Vos Tested-by: Vijay Bellur --- extras/hook-scripts/set/post/S30samba-set.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras/hook-scripts/set/post') diff --git a/extras/hook-scripts/set/post/S30samba-set.sh b/extras/hook-scripts/set/post/S30samba-set.sh index 36858fafb70..3ff368207c4 100755 --- a/extras/hook-scripts/set/post/S30samba-set.sh +++ b/extras/hook-scripts/set/post/S30samba-set.sh @@ -91,7 +91,7 @@ function sighup_samba () { then kill -HUP "$pid"; else - /etc/init.d/smb start + /etc/init.d/smb condrestart fi } -- cgit