summaryrefslogtreecommitdiffstats
path: root/extras/systemd/glusterfssharedstorage.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'extras/systemd/glusterfssharedstorage.service.in')
-rw-r--r--extras/systemd/glusterfssharedstorage.service.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/extras/systemd/glusterfssharedstorage.service.in b/extras/systemd/glusterfssharedstorage.service.in
new file mode 100644
index 00000000000..3bceba84215
--- /dev/null
+++ b/extras/systemd/glusterfssharedstorage.service.in
@@ -0,0 +1,12 @@
+[Unit]
+Description=Mount glusterfs sharedstorage
+Requires=glusterd.service remote-fs-pre.target local-fs.target
+
+[Service]
+ExecStart=@GLUSTERFS_LIBEXECDIR@/mount-shared-storage.sh
+Restart=on-failure
+RestartSec=3
+RestartForceExitStatus=1
+
+[Install]
+WantedBy=multi-user.target