blob: bc294b8ac15054588c1917a5abc0e738b90b7ebd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
# 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"
|