guru/net-p2p/monero/files/monerod.initd
Lucio Sauer c983541ac3
net-p2p/monero: fix grace period when stopping OpenRC service
Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
2023-01-08 17:39:14 +01:00

23 lines
556 B
Plaintext

#!/sbin/openrc-run
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
pidfile=/var/run/monerod.pid
command=/usr/bin/monerod
command_args="${monerod_args}"
start_stop_daemon_args="-u ${monerod_user} -b -m -p ${pidfile}"
retry="SIGTERM/30/SIGKILL/5"
name="Monero P2P Daemon"
description="Connects to the Monero P2P network"
depend() {
need localmount
need net
}
start_pre() {
checkpath --directory --owner ${monerod_user}:${monerod_group} --mode 0755 \
/var/lib/monero /var/log/monero
}