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