aboutsummaryrefslogtreecommitdiff
path: root/www/nostromo/files/nostromo.sh.in
blob: 65dd114f31e5a1e5904c1c7a3b2fcfb3e434e5b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/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
rcvar=`set_rcvar`

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"