update system scripts
This commit is contained in:
@@ -1,36 +1,36 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# bitcoind The bitcoin core server.
|
||||
# hushd The hush core server.
|
||||
#
|
||||
#
|
||||
# chkconfig: 345 80 20
|
||||
# description: bitcoind
|
||||
# processname: bitcoind
|
||||
# description: hushd
|
||||
# processname: hushd
|
||||
#
|
||||
|
||||
# Source function library.
|
||||
. /etc/init.d/functions
|
||||
|
||||
# you can override defaults in /etc/sysconfig/bitcoind, see below
|
||||
if [ -f /etc/sysconfig/bitcoind ]; then
|
||||
. /etc/sysconfig/bitcoind
|
||||
# you can override defaults in /etc/sysconfig/hushd, see below
|
||||
if [ -f /etc/sysconfig/hushd ]; then
|
||||
. /etc/sysconfig/hushd
|
||||
fi
|
||||
|
||||
RETVAL=0
|
||||
|
||||
prog=bitcoind
|
||||
# you can override the lockfile via BITCOIND_LOCKFILE in /etc/sysconfig/bitcoind
|
||||
lockfile=${BITCOIND_LOCKFILE-/var/lock/subsys/bitcoind}
|
||||
prog=hushd
|
||||
# you can override the lockfile via HUSHD_LOCKFILE in /etc/sysconfig/hushd
|
||||
lockfile=${HUSHD_LOCKFILE-/var/lock/subsys/hushd}
|
||||
|
||||
# bitcoind defaults to /usr/bin/bitcoind, override with BITCOIND_BIN
|
||||
bitcoind=${BITCOIND_BIN-/usr/bin/bitcoind}
|
||||
# hushd defaults to /usr/bin/hushd, override with HUSHD_BIN
|
||||
hushd=${HUSHD_BIN-/usr/bin/hushd}
|
||||
|
||||
# bitcoind opts default to -disablewallet, override with BITCOIND_OPTS
|
||||
bitcoind_opts=${BITCOIND_OPTS--disablewallet}
|
||||
# hushd opts default to -disablewallet, override with HUSHD_OPTS
|
||||
hushd_opts=${HUSHD_OPTS--disablewallet}
|
||||
|
||||
start() {
|
||||
echo -n $"Starting $prog: "
|
||||
daemon $DAEMONOPTS $bitcoind $bitcoind_opts
|
||||
daemon $DAEMONOPTS $hushd $hushd_opts
|
||||
RETVAL=$?
|
||||
echo
|
||||
[ $RETVAL -eq 0 ] && touch $lockfile
|
||||
|
||||
Reference in New Issue
Block a user