aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bitcoin/bitcoin.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/bitcoin/bitcoin.initd')
-rw-r--r--testing/bitcoin/bitcoin.initd38
1 files changed, 0 insertions, 38 deletions
diff --git a/testing/bitcoin/bitcoin.initd b/testing/bitcoin/bitcoin.initd
deleted file mode 100644
index 393ea45374..0000000000
--- a/testing/bitcoin/bitcoin.initd
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/sbin/openrc-run
-
-# Bitcoin init.d file for Alpine Linux.
-
-name=bitcoind
-daemon=/usr/bin/$name
-config=/etc/bitcoin.conf
-user=bitcoin
-group=bitcoin
-## supercedes datadir set in $config ##
-datadir=/var/lib/bitcoin
-pidfile=/var/run/bitcoin/$name.pid
-
-depend() {
- need net
- after logger firewall
-}
-
-start() {
- ebegin "Starting ${name}"
- # enforce permissions
- checkpath -q -d ${pidfile%/*} -o ${user}:${group}
- checkpath -q -d ${datadir} -m 0700 -o ${user}:${group}
- checkpath -q -f ${config} -m 0600 -o ${user}:${group}
- start-stop-daemon --start --quiet \
- --pidfile ${pidfile} \
- --user ${user}:${group} \
- --exec ${daemon} -- -conf=${config} -datadir=${datadir} -pid=${pidfile}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${name}"
- start-stop-daemon --stop --quiet \
- --pidfile ${pidfile} \
- --exec ${daemon}
- eend $?
-}