2013-06-10-0532Z


None of my previous scripts actually succeeded at killing the bitcoind process. So I came up with this Upstart script and it has worked well for the past 12 hours at least:

[jcomeau@paulvps ~]$ cat /etc/init/bitcoind.conf 
# run bitcoind as user, respawning on failure
# it has a memory leak so I expect it to get killed off occasionally
start on stopped RUNLEVEL=[2345]
stop on runlevel [!2345]
respawn
exec timeout -s KILL 5h timeout 4h su - jcomeau -c bin/bitcoind

It seems to still require the KILL signal, which kicks in after 5 hours. I don't understand why TERM doesn't do it.

Back to blog or home page

last updated 2013-06-23 20:39:28. served from tektonic.jcomeau.com