diff options
author | 2024-11-02 11:40:12 -0700 | |
---|---|---|
committer | 2024-11-02 11:40:12 -0700 | |
commit | 54727926a77f37245155e680bfd4b08715e20674 (patch) | |
tree | 446ed271c9dd7f3e08b26bb0f0827e82e42798e1 /net-p2p/monero/files/monerod.initd | |
parent | net-p2p/xmrig-proxy: new package, add 6.22.0 (diff) | |
download | johnmh-54727926a77f37245155e680bfd4b08715e20674.tar.gz johnmh-54727926a77f37245155e680bfd4b08715e20674.tar.bz2 johnmh-54727926a77f37245155e680bfd4b08715e20674.zip |
Signed-off-by: John M. Harris Jr. <johnmh@johnmh.me>
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 +} |