You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ergo 455B

1234567891011121314151617181920212223242526
  1. #!/sbin/sh
  2. #
  3. # SMF method script for ergo - used by manifest file ergo.xml
  4. # Created 22/11/2021 by georg@lysergic.dev
  5. . /lib/svc/share/smf_include.sh
  6. case $1 in
  7. 'start')
  8. exec /opt/ergo/ergo run --conf /opt/ergo/ircd.yaml
  9. ;;
  10. 'refresh' )
  11. exec pkill -1 -U ergo -x ergo
  12. ;;
  13. 'stop' )
  14. exec pkill -U ergo -x ergo
  15. ;;
  16. *)
  17. echo "Usage: $0 { start | refresh | stop }"
  18. exit 1
  19. ;;
  20. esac
  21. exit $?