mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
7653e201b7
- Convert header to new format - Use PORT_OPTIONS:MDOCS instead of *PORTDOCS - Update rc script such that -D is always specified
38 lines
635 B
Bash
38 lines
635 B
Bash
#!/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="-f %%PREFIX%%/etc/pmacctd.conf -i em0"
|
|
#
|
|
# Default flags: -f %%PREFIX%%/etc/pmacctd.conf
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=pmacctd
|
|
rcvar=pmacctd_enable
|
|
|
|
command=%%PREFIX%%/sbin/$name
|
|
command_args="-D"
|
|
|
|
# set defaults
|
|
|
|
pmacctd_enable=${pmacctd_enable:-"NO"}
|
|
pmacctd_flags=${pmacctd_flags:-"-f %%PREFIX%%/etc/pmacctd.conf"}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|