snac2/examples/snac_freebsd

19 lines
313 B
Plaintext
Raw Normal View History

2024-01-03 16:51:36 +03:00
# 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"