diff options
Diffstat (limited to 'net-p2p/datacoin-hp/files/datacoin.initd')
-rw-r--r-- | net-p2p/datacoin-hp/files/datacoin.initd | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/net-p2p/datacoin-hp/files/datacoin.initd b/net-p2p/datacoin-hp/files/datacoin.initd deleted file mode 100644 index 1c380b7d12e1..000000000000 --- a/net-p2p/datacoin-hp/files/datacoin.initd +++ /dev/null @@ -1,28 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -vardir="/var/lib/datacoin" -conffile="${vardir}/.datacoin/datacoin.conf" -datacoind_user="${DATACOIN_USER:-nobody:nobody}" - -description="Bitcoin crypto-currency wallet for automated services" -pidfile="/run/${SVCNAME}.pid" -command="/usr/bin/datacoind" -command_args="${DATACOIN_OPTS}" -command_background="true" -start_stop_daemon_args="-u ${datacoind_user} -e HOME=${vardir} -N ${NICELEVEL:-0} -w 2000" - -depend() { - need net -} - -start_pre() { - checkpath -f -o ${datacoind_user} -m 0400 ${conffile} || return 1 - - if ! grep -q '^rpcpassword=' "${conffile}"; then - eerror "Please edit `readlink -f ${conffile}`" - eerror "There must be at least a line assigning rpcpassword=something-secure" - return 1 - fi -} |