Improve glusterfsd.service to start and stop successfully
Resolves: 1022542
This commit is contained in:
parent
81a6a069c4
commit
ba4470a022
@ -765,6 +765,9 @@ if [ $1 -ge 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Oct 27 2013 Niels de Vos <ndevos@redhat.com>
|
||||||
|
- Correctly start+stop glusterfsd.service (#1022542)
|
||||||
|
|
||||||
* Sat Oct 26 2013 Niels de Vos <ndevos@redhat.com>
|
* Sat Oct 26 2013 Niels de Vos <ndevos@redhat.com>
|
||||||
- add base-port config option to /etc/glusterd/glusterd.vol (#1023653)
|
- add base-port config option to /etc/glusterd/glusterd.vol (#1023653)
|
||||||
|
|
||||||
|
@ -1,12 +1,16 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=GlusterFS an clustered file-system server
|
Description=GlusterFS brick processes (stopping only)
|
||||||
After=network.target glusterd.service
|
After=network.target glusterd.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=oneshot
|
||||||
PIDFile=/run/glusterfsd.pid
|
# glusterd starts the glusterfsd processed on-demand
|
||||||
LimitNOFILE=65536
|
# /bin/true will mark this service as started, RemainAfterExit keeps it active
|
||||||
ExecStart=/usr/sbin/glusterfsd -p /run/glusterfsd.pid
|
ExecStart=/bin/true
|
||||||
|
RemainAfterExit=yes
|
||||||
|
# if there are no glusterfsd processes, a stop/reload should not give an error
|
||||||
|
ExecStop=/bin/sh -c "/bin/killall --wait glusterfsd || /bin/true"
|
||||||
|
ExecReload=/bin/sh -c "/bin/killall -HUP glusterfsd || /bin/true"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user