aports/openrc/monerod/runfile

21 lines
505 B
Plaintext
Raw Normal View History

2021-03-17 14:15:44 +00:00
#!/sbin/openrc-run
: ${MONEROD_CONF:=/etc/monero/daemon.conf}
: ${MONEROD_DATA:=/var/lib/monerod}
name=monerod
command="/usr/bin/monerod"
pidfile="/run/monerod.pid"
command_args="--config-file ${MONEROD_CONF} --detach --pidfile $pidfile --non-interactive --no-zmq --no-igd --data-dir ${MONEROD_DATA} --enforce-dns-checkpointing ${MONEROD_EXTRA_ARGS}"
depend() {
need net dns
after firewall
}
start_pre() {
checkpath -d -m755 "${MONEROD_DATA}"
checkpath -f -m644 "${MONEROD_CONF}"
}