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