snac_openbsd 373 B

1234567891011121314151617181920
  1. #!/bin/ksh
  2. daemon_args="httpd /PATH/TO/SNAC/BASEDIR"
  3. daemon_logger="daemon.info"
  4. daemon_user="SNACUSER"
  5. daemon="/usr/local/bin/snac ${daemon_args}"
  6. . /etc/rc.d/rc.subr
  7. pexp="${daemon}.*"
  8. rc_reload=NO
  9. rc_bg=YES
  10. rc_cmd $1
  11. # this is an OpenBSD /etc/rc.d startup script. Edit and run as root:
  12. #
  13. # install snac_openbsd /etc/rc.d/snac
  14. # rcctl enable snac
  15. # rcctl start snac