mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
[examples/snac_openbsd] new file.
This commit is contained in:
parent
ebb6b105fc
commit
86fb715be5
20
examples/snac_openbsd
Normal file
20
examples/snac_openbsd
Normal file
@ -0,0 +1,20 @@
|
||||
#!/bin/ksh
|
||||
|
||||
daemon_args="httpd /PATH/TO/SNAC/BASEDIR"
|
||||
daemon_logger="daemon.info"
|
||||
daemon_user="SNACUSER"
|
||||
daemon="/usr/local/bin/snac ${daemon_args}"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
pexp="${daemon}.*"
|
||||
rc_reload=NO
|
||||
rc_bg=YES
|
||||
|
||||
rc_cmd $1
|
||||
|
||||
# this is an OpenBSD /etc/rc.d startup script. Edit and run as root:
|
||||
#
|
||||
# install snac_openbsd /etc/rc.d/snac
|
||||
# rcctl enable snac
|
||||
# rcctl start snac
|
Loading…
Reference in New Issue
Block a user