summaryrefslogtreecommitdiffstats
path: root/extras/systemd/glusterd-shd.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'extras/systemd/glusterd-shd.service.in')
-rw-r--r--extras/systemd/glusterd-shd.service.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/extras/systemd/glusterd-shd.service.in b/extras/systemd/glusterd-shd.service.in
new file mode 100644
index 00000000000..bd6933d0247
--- /dev/null
+++ b/extras/systemd/glusterd-shd.service.in
@@ -0,0 +1,17 @@
+[Unit]
+Description=GlusterFS Self-Heal Daemon
+After=network.target rpcbind.service
+Before=network-online.target
+
+[Service]
+Type=forking
+EnvironmentFile=@localstatedir@/lib/glusterd/glusterd.info
+LimitNOFILE=65536
+ExecStartPre=-/bin/pkill -f '^@prefix@/sbin/glusterfs.*gluster/glustershd'
+ExecStart= @prefix@/sbin/glusterfs -s localhost --volfile-id gluster/glustershd -p @localstatedir@/lib/glusterd/glustershd/run/glustershd.pid -l /var/log/glusterfs/glustershd.log --xlator-option *replicate*.node-uuid=${UUID} -S @localstatedir@/lib/glusterd/glustershd/run/${UUID}.socket
+PIDFile=@localstatedir@/lib/glusterd/glustershd/run/glustershd.pid
+ExecStop=/bin/pkill -f '^@prefix@/sbin/glusterfs.*gluster/glustershd'
+Restart=always
+
+[Install]
+WantedBy=multi-user.target