Skip to content

Commit

Permalink
[Utils] Add ExecStop= to example systemd service
Browse files Browse the repository at this point in the history
With no stop command defined `systemctl stop pivxd` will send SIGTERM
which can cause database corruption. With this change `pivx-cli stop`
will be used to stop the daemon process gracefully.

GitHub-Pull: bitcoin#166
Rebased-From: 236e9b7
  • Loading branch information
aaronm-cloudtek authored and Fuzzbawls committed May 4, 2017
1 parent 0d5709a commit 82f66ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contrib/init/pivxd.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ Group=pivx
Type=forking
PIDFile=/var/lib/pivxd/pivxd.pid
ExecStart=/usr/bin/pivxd -daemon -pid=/var/lib/pivxd/pivxd.pid \
-conf=/etc/pivx/pivx.conf -datadir=/var/lib/pivxd
-conf=/etc/pivx/pivx.conf -datadir=/var/lib/pivxd
ExecStop=-/usr/bin/pivx-cli -conf=/etc/pivx/pivx.conf \
-datadir=/var/lib/pivxd stop
Restart=always
PrivateTmp=true
Expand Down

0 comments on commit 82f66ee

Please sign in to comment.