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