diff options
Diffstat (limited to 'net-p2p/monero/files/monerod.initd')
-rw-r--r-- | net-p2p/monero/files/monerod.initd | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net-p2p/monero/files/monerod.initd b/net-p2p/monero/files/monerod.initd new file mode 100644 index 0000000..48a46d5 --- /dev/null +++ b/net-p2p/monero/files/monerod.initd @@ -0,0 +1,22 @@ +#!/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 +} |