~cypheon/pkgsrc-wip

pkgsrc-wip/dogecoin/files/dogecoind.sh -rw-r--r-- 551 bytes
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD$
#

# PROVIDE: dogecoind
# REQUIRE: DAEMON LOGIN wscons
# KEYWORD: shutdown

if [ -f /etc/rc.subr ]; then
	. /etc/rc.subr
fi

name="dogecoind"
rcvar=$name
command="@PREFIX@/sbin/dogecoind"
pidfile="@VARBASE@/run/dogecoind.pid"
required_directory="@VARBASE@/dogecoin"
command_args="-daemon -conf=@PREFIX@/etc/dogecoin.conf -pid=${pidfile} -datadir=${required_directory}"

if [ -f /etc/rc.subr ]; then
	load_rc_config $name
	run_rc_command "$1"
else
	echo -n " ${name}"
	${command} ${dogecoin_flags} ${command_args}
fi