3 # bitcoind The bitcoin core server.
7 # description: bitcoind
8 # processname: bitcoind
11 # Source function library.
12 .
/etc
/init.d
/functions
14 # you can override defaults in /etc/sysconfig/bitcoind, see below
15 if [ -f /etc
/sysconfig
/bitcoind
]; then
16 .
/etc
/sysconfig
/bitcoind
22 # you can override the lockfile via BITCOIND_LOCKFILE in /etc/sysconfig/bitcoind
23 lockfile
=${BITCOIND_LOCKFILE-/var/lock/subsys/bitcoind}
25 # bitcoind defaults to /usr/bin/bitcoind, override with BITCOIND_BIN
26 bitcoind
=${BITCOIND_BIN-/usr/bin/bitcoind}
28 # bitcoind opts default to -disablewallet, override with BITCOIND_OPTS
29 bitcoind_opts
=${BITCOIND_OPTS--disablewallet}
32 echo -n $
"Starting $prog: "
33 daemon
$DAEMONOPTS $bitcoind $bitcoind_opts
36 [ $RETVAL -eq 0 ] && touch $lockfile
41 echo -n $
"Stopping $prog: "
45 [ $RETVAL -eq 0 ] && rm -f $lockfile
64 echo "Usage: service $prog {start|stop|status|restart}"