mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Addes FreeBSD rc script example
This commit is contained in:
parent
6fe31dd725
commit
f94cfcc5d2
1 changed files with 19 additions and 0 deletions
19
examples/snac_freebsd
Normal file
19
examples/snac_freebsd
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# PROVIDE: snac
|
||||||
|
# REQUIRE: DAEMON
|
||||||
|
# KEYWORD: shutdown
|
||||||
|
|
||||||
|
. /etc/rc.subr
|
||||||
|
|
||||||
|
name="snac"
|
||||||
|
rcvar=snac_enable
|
||||||
|
|
||||||
|
load_rc_config $name
|
||||||
|
|
||||||
|
: ${snac_enable:=NO}
|
||||||
|
: ${snac_user:="snac"}
|
||||||
|
: ${snac_args:="httpd SNAC_DATA_PATH"}
|
||||||
|
|
||||||
|
command="/usr/local/bin/snac"
|
||||||
|
command_args="${snac_args} > /var/log/snac.log 2>&1 &"
|
||||||
|
|
||||||
|
run_rc_command "$1"
|
Loading…
Reference in a new issue