diff options
Diffstat (limited to 'extras/systemd/glusterd-nfsd.service.in')
-rw-r--r-- | extras/systemd/glusterd-nfsd.service.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/extras/systemd/glusterd-nfsd.service.in b/extras/systemd/glusterd-nfsd.service.in new file mode 100644 index 00000000000..45de2a4dc26 --- /dev/null +++ b/extras/systemd/glusterd-nfsd.service.in @@ -0,0 +1,16 @@ +[Unit] +Description=GlusterFS NFS Daemon +After=network.target rpcbind.service +Before=network-online.target + +[Service] +Type=forking +EnvironmentFile=@localstatedir@/lib/glusterd/glusterd.info +ExecStartPre=-/bin/pkill -f 'glusterfs.*gluster/nfs' +ExecStart=@prefix@/sbin/glusterfs -s localhost --volfile-id gluster/nfs -p @localstatedir@/lib/glusterd/nfs/run/nfs.pid -l /var/log/glusterfs/nfs.log -S @localstatedir@/lib/glusterd/nfs/run/${UUID}.socket +PIDFile=@localstatedir@/lib/glusterd/nfs/run/nfs.pid +ExecStop=-/bin/pkill -f 'glusterfs.*gluster/nfs' +Restart=always + +[Install] +WantedBy=multi-user.target |