summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorRaghavendra Talur <rtalur@redhat.com>2014-06-05 18:24:56 +0530
committerVijay Bellur <vbellur@redhat.com>2014-06-12 03:57:14 -0700
commit8a2454d4490abb4860fa9ebc83c8bda8ed8aa260 (patch)
treecded3339a727faa0da72e2c8ed468e4d63b83f9e /extras
parent254a5e484b01f946beff3f51f9ade38f4cdfe51b (diff)
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 <rtalur@redhat.com> Reviewed-on: http://review.gluster.org/7994 Reviewed-by: Poornima G <pgurusid@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'extras')
-rwxr-xr-xextras/hook-scripts/set/post/S30samba-set.sh2
1 files changed, 1 insertions, 1 deletions
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
}