blob: 17a749a3d8660cd301840b8b3c5a49592d95bd96 (
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
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: pmacctd
# REQUIRE: NETWORKING
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable pmacctd:
#
# pmacctd_enable="YES"
#
# You can define flags for pmacctd running. See pmacctd(8) for details.
#
# Example:
# pmacctd_flags="-Df %%PREFIX%%/etc/pmacctd.conf -i em0"
#
# Default flags: -Df %%PREFIX%%/etc/pmacctd.conf
#
. /etc/rc.subr
name=pmacctd
rcvar=pmacctd_enable
command=%%PREFIX%%/$name
# set defaults
pmacctd_enable=${pmacctd_enable:-"NO"}
pmacctd_flags=${pmacctd_flags:-"-Df %%PREFIX%%/etc/pmacctd.conf"}
load_rc_config $name
run_rc_command "$1"
|