gofish.rc 607 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/sbin/openrc-run
  2. #
  3. # Startup script for the Gofish Gopher Server (for Gentoo Linux)
  4. #
  5. # config: /etc/conf.d/gofish
  6. ##
  7. # use: rc-update add gofish default
  8. #
  9. opts="start stop"
  10. depend() {
  11. need net
  12. }
  13. start() {
  14. ebegin "Starting ${GOFISH_APP} "
  15. start-stop-daemon --start --verbose --pidfile ${GOFISH_PIDFILE} \
  16. --exec ${GOFISH_EXEC} -- ${GOFISH_START_OPTS}
  17. eend $?
  18. }
  19. stop() {
  20. ebegin "Stopping ${GOFISH_APP} "
  21. start-stop-daemon --stop --quiet --pidfile ${GOFISH_PIDFILE} \
  22. --exec ${GOFISH_EXEC} -- ${GOFISH_STOP_OPTS}
  23. eend $?
  24. }