blob: c95712c78424f670b83f5be888d605d18b8522b9 (
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
35
36
37
38
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: %%SERVICE%%
# REQUIRE: SERVERS
# BEFORE: DAEMON
# KEYWORD: FreeBSD shutdown
#
# NOTE for FreeBSD 5.0+:
# If you want this script to start with the base rc scripts
# move %%SERVICE%%.sh to /etc/rc.d/%%SERVICE%%
prefix=%%PREFIX%%
# Define these %%SERVICE%%_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/%%SERVICE%%
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
%%SERVICE%%_enable=${%%SERVICE%%_enable:-"NO"}
%%SERVICE%%_flags=${%%SERVICE%%_flags:-""} # Can be "-f /path/alternate_rc"
. %%RC_SUBR%%
name="%%SERVICE%%"
rcvar=`set_rcvar`
command="${prefix}/sbin/${name}"
command_args="| /usr/bin/logger -p daemon.notice -t %%SERVICE%% &"
load_rc_config $name
flags="${%%SERVICE%%_flags}"
run_rc_command "$1"
|