4c410a46ef
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 <jthottan@redhat.com> Reviewed-on: https://review.gluster.org/17658 Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: soumya k <skoduri@redhat.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
14 lines
288 B
SYSTEMD
14 lines
288 B
SYSTEMD
[Unit]
|
|
Description=Mount glusterfs sharedstorage
|
|
Requires=glusterd.service remote-fs-pre.target local-fs.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
ExecStart=@GLUSTERFS_LIBEXECDIR@/mount-shared-storage.sh
|
|
Restart=on-failure
|
|
RestartSec=3
|
|
RestartForceExitStatus=1
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|