summaryrefslogtreecommitdiffstats
path: root/www/wwwoffle/files/wwwoffled.sh.in
blob: 18a3d97791c9fe98ddcd2f7d9ea8a526e2632eec (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
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
# $FreeBSD$

# PROVIDE: wwwoffled
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown

# Define these wwwoffled_* variables in one of these files:
#	/etc/rc.conf
#	/etc/rc.conf.local
#	/etc/rc.conf.d/wwwoffled
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
wwwoffled_enable=${wwwoffled_enable-"NO"}
wwwoffled_flags=${wwwoffled_flags-""}
wwwoffled_pidfile=${wwwoffled_pidfile-"/var/run/wwwoffled.pid"}
wwwoffled_conffile="%%PREFIX%%/etc/wwwoffle.conf"

. %%RC_SUBR%%

name="wwwoffled"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/wwwoffled"

load_rc_config $name

pidfile="${wwwoffled_pidfile}"
command_args="-p > ${pidfile} 2> /dev/null"
required_files="${wwwoffled_conffile}"
stop_postcmd="/bin/rm -f ${pidfile}"

run_rc_command "$1"
OpenPOWER on IntegriCloud