blob: 92075b716a2b5c4642add7a97f417f43838de946 (
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
28
29
30
31
32
33
34
35
36
37
38
39
|
#!/bin/sh
#
#
# PROVIDE: traff
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable traff:
#
# traff_enable="YES"
#
#
. /etc/rc.subr
name=traff
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/traff
pidfile=/var/run/traff.pid
required_files=%%PREFIX%%/etc/traff.conf
stop_postcmd=stop_postcmd
stop_postcmd()
{
rm -f $pidfile
}
# set defaults
traff_enable=${traff_enable:-"NO"}
load_rc_config $name
run_rc_command "$1"
|