parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

monerod-0.16.0.3-r1.initd (527B)


      1 #!/sbin/openrc-run
      2 # Copyright 2020 Gentoo Authors
      3 # Distributed under the terms of the GNU General Public License v2
      4 
      5 pidfile=/var/run/monerod.pid
      6 command=/usr/bin/monerod
      7 command_args="${monerod_args}"
      8 start_stop_daemon_args="-u ${monerod_user} -b -m -p ${pidfile}"
      9 
     10 name="Monero P2P Daemon"
     11 description="Connects to the Monero P2P network"
     12 
     13 depend() {
     14     need localmount
     15     need net
     16 }
     17 
     18 start_pre() {
     19     checkpath --directory --owner ${monerod_user}:${monerod_group} --mode 0755 \
     20 	      /var/lib/monero /var/log/monero
     21 }