868e4b
[Unit]
868e4b
Description=GlusterFS brick processes (stopping only)
868e4b
After=network.target glusterd.service
868e4b
868e4b
[Service]
868e4b
Type=oneshot
868e4b
# glusterd starts the glusterfsd processed on-demand
868e4b
# /bin/true will mark this service as started, RemainAfterExit keeps it active
868e4b
ExecStart=/bin/true
868e4b
RemainAfterExit=yes
868e4b
# if there are no glusterfsd processes, a stop/reload should not give an error
868e4b
ExecStop=/bin/sh -c "/bin/killall --wait glusterfsd || /bin/true"
868e4b
ExecReload=/bin/sh -c "/bin/killall -HUP glusterfsd || /bin/true"
868e4b
868e4b
[Install]
868e4b
WantedBy=multi-user.target