21 lines
505 B
Plaintext
21 lines
505 B
Plaintext
|
#!/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}"
|
||
|
}
|
||
|
|