diff options
author | Babak Farrokhi <farrokhi@FreeBSD.org> | 2020-02-06 13:38:11 +0000 |
---|---|---|
committer | Babak Farrokhi <farrokhi@FreeBSD.org> | 2020-02-06 13:38:11 +0000 |
commit | 1e375b4ca2dfe90b3c148074211de6cf1c482dfd (patch) | |
tree | 19c660feedf090c0e21ef375d953544de7053c06 /net-mgmt/fastnetmon | |
parent | 92c8aa17a6a6b120f0a9f45bba84d25889c72ea9 (diff) | |
download | ports-1e375b4ca2dfe90b3c148074211de6cf1c482dfd.tar.gz ports-1e375b4ca2dfe90b3c148074211de6cf1c482dfd.zip |
net-mgmt/fastnetmon: Improve RC script
- Instruct fastnetmaon to read configuration file from PREFIX
- Bump PORTREVISION
PR: 241571
Submitted by: Leo Vandewoestijne <freebsd@dns.company>
Notes
Notes:
svn path=/head/; revision=525378
Diffstat (limited to 'net-mgmt/fastnetmon')
-rw-r--r-- | net-mgmt/fastnetmon/Makefile | 2 | ||||
-rw-r--r-- | net-mgmt/fastnetmon/files/fastnetmon.in | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/net-mgmt/fastnetmon/Makefile b/net-mgmt/fastnetmon/Makefile index ad183a07bb72..de91c8237d03 100644 --- a/net-mgmt/fastnetmon/Makefile +++ b/net-mgmt/fastnetmon/Makefile @@ -4,7 +4,7 @@ PORTNAME= fastnetmon PORTVERSION= 1.1.4 DISTVERSIONPREFIX= v -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-mgmt security MAINTAINER= farrokhi@FreeBSD.org diff --git a/net-mgmt/fastnetmon/files/fastnetmon.in b/net-mgmt/fastnetmon/files/fastnetmon.in index 52f1236bfbd6..431a34793412 100644 --- a/net-mgmt/fastnetmon/files/fastnetmon.in +++ b/net-mgmt/fastnetmon/files/fastnetmon.in @@ -19,10 +19,12 @@ rcvar=fastnetmon_enable load_rc_config "$name" : ${fastnetmon_enable:=NO} -: ${fastnetmon_user:=fastnetmon} +: ${fastnetmon_conf:=%%ETCDIR%%/$name.conf} : ${fastnetmon_flags:=--daemonize} +: ${fastnetmon_user:=fastnetmon} command=%%PREFIX%%/bin/fastnetmon +command_args="--configuration_file ${fastnetmon_conf} ${fastnetmon_flags}" pidfile=/var/run/fastnetmon/$name.pid run_rc_command "$1" |