summaryrefslogtreecommitdiff
path: root/www/nostromo/files/nostromo.in
blob: 5941f3c4c5c9ca818057425ccee0ac428e75786e (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=nostromo_enable

command=%%PREFIX%%/sbin/nhttpd

nostromo_enable=${nostromo_enable:-"NO"}
nostromo_flags=${nostromo_flags:-"-c %%PREFIX%%/nostromo/conf/nhttpd.conf"}

load_rc_config $name
run_rc_command "$1"