1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/net-mgmt/pmacct/files/pmacctd.in
Kurt Jaeger c4fca44453 net-mgmt/pmacct: update 0.14.3 -> 1.6.1
- take maintainership
- MongoDB support is still broken. Version 1.6.1 as well as 0.14.3
  requires legacy 0.8.1 mongo-c-driver which is no longer available
  in ports tree.
- nflog support requires missing libraries, so it is disabled.
- Other features like RabbitMQ or Kafka should work.

PR:		217448
Changes:	http://www.pmacct.net/ChangeLog-1.6.1
Submitted by:	Alexander Shikov <a.shikov@itcons.net.ua>
Approved by:	zi (maintainer)
2017-03-21 19:44:42 +00:00

39 lines
674 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 http://wiki.pmacct.net/OfficialConfigKeys for more 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"