parlay

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

electrum-personal-server.initd (557B)


      1 #!/sbin/openrc-run
      2 # Copyright 1999-2021 Gentoo Authors
      3 # Distributed under the terms of the GNU General Public License v2
      4 
      5 pidfile="/var/run/electrum-personal-server.pid"
      6 command="/usr/bin/electrum-personal-server"
      7 command_args="${eps_args}"
      8 start_stop_daemon_args="-u ${eps_user} -b -m -p ${pidfile}"
      9 
     10 name="Electrum Personal Server"
     11 description="Connects to the bitcoind RPC"
     12 
     13 depend() {
     14 	need bitcoind
     15 }
     16 
     17 start_pre() {
     18 	if ! [ -e "${eps_config}" ]; then
     19 		eerror ""
     20 		eerror "Please create a configuration in ${eps_config}"
     21 		eerror ""
     22 		return 1
     23 	fi
     24 }