From 4c410a46ef58512ba751db8750910a6d09ec3696 Mon Sep 17 00:00:00 2001 From: Jiffin Tony Thottan Date: Fri, 30 Jun 2017 17:11:46 +0530 Subject: systemd/glusterfssharedstorage : remove dependency for var-run-gluster-shared_storage Currently the script used by glusterfssharedstorage have dependency over var-run-gluster-shared_storage. But this service will be present only if node has rebooted. Also in reboot scenario , there is a chance that this service can be executed before creating var-run-gluster-shared_storage. In that case glusterfssharedstorage will get succeed even without mounting the shared storage Also the type of glusterfssharedstorage changed to "forking" so that it can be active(instead of dead) after the successful start. Change-Id: I1c02cc64946e534d845aa7ec7b72644bbe4d26f9 BUG: 1452527 Signed-off-by: Jiffin Tony Thottan Reviewed-on: https://review.gluster.org/17658 Smoke: Gluster Build System CentOS-regression: Gluster Build System Reviewed-by: soumya k Reviewed-by: Kaleb KEITHLEY --- extras/mount-shared-storage.sh | 43 ++++++++++++------------ extras/systemd/glusterfssharedstorage.service.in | 1 + 2 files changed, 22 insertions(+), 22 deletions(-) (limited to 'extras') diff --git a/extras/mount-shared-storage.sh b/extras/mount-shared-storage.sh index 038a59aaabf..3645a0f42fd 100755 --- a/extras/mount-shared-storage.sh +++ b/extras/mount-shared-storage.sh @@ -4,34 +4,33 @@ #try to mount the shared storage if it fails #TODO : Do it for other glusterfs clients in /etc/fstab -ms="var-run-gluster-shared_storage.mount" volume="gluster_shared_storage" -failed=$(systemctl --failed | grep -c $ms) -if [ $failed -eq 1 ] +mp="/var/run/gluster/shared_storage" +#check if there is fstab entry for shared storage +gfc=$(sed -e 's/#.$//'