aboutsummaryrefslogtreecommitdiff
path: root/net/traff/files/traff.sh.in
blob: 05f51e837da31518152e6c7f052bbecbe0dcc463 (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"
#
#

. %%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"