2011-04-16 10:45:27 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: nostromo
|
|
|
|
# REQUIRE: DAEMON
|
|
|
|
# KEYWORD: shutdown
|
|
|
|
|
|
|
|
#
|
|
|
|
# Add the following line to /etc/rc.conf to enable nostromo:
|
|
|
|
#
|
|
|
|
# nostromo_enable="YES"
|
|
|
|
#
|
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name=nostromo
|
2012-01-14 09:57:23 +01:00
|
|
|
rcvar=nostromo_enable
|
2011-04-16 10:45:27 +02:00
|
|
|
|
|
|
|
command=/usr/local/sbin/nhttpd
|
|
|
|
|
|
|
|
nostromo_enable=${nostromo_enable:-"NO"}
|
|
|
|
nostromo_flags=${nostromo_flags:-"-c /usr/local/nostromo/conf/nhttpd.conf"}
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|