diff options
author | girgen <girgen@FreeBSD.org> | 2016-04-19 07:28:09 +0800 |
---|---|---|
committer | girgen <girgen@FreeBSD.org> | 2016-04-19 07:28:09 +0800 |
commit | 83f3c789d37ca0d2b431d8ff2d0b49f1cf70478d (patch) | |
tree | c794c98ec5b81f2c00ac526459868b951874782b /net-mgmt | |
parent | f2fd5bd32f17ccedba1527d18cf682cc6f207911 (diff) | |
download | freebsd-ports-gnome-83f3c789d37ca0d2b431d8ff2d0b49f1cf70478d.tar.gz freebsd-ports-gnome-83f3c789d37ca0d2b431d8ff2d0b49f1cf70478d.tar.zst freebsd-ports-gnome-83f3c789d37ca0d2b431d8ff2d0b49f1cf70478d.zip |
telegraf_flags will be applied to /usr/bin/daemon
unless we force it empty there and used it explicitally.
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/telegraf/Makefile | 1 | ||||
-rw-r--r-- | net-mgmt/telegraf/files/telegraf.in | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/net-mgmt/telegraf/Makefile b/net-mgmt/telegraf/Makefile index af6131c03c94..0df4742d001c 100644 --- a/net-mgmt/telegraf/Makefile +++ b/net-mgmt/telegraf/Makefile @@ -3,6 +3,7 @@ PORTNAME= telegraf PORTVERSION= 0.12.1 +PORTREVISION= 1 CATEGORIES= net-mgmt MAINTAINER= girgen@FreeBSD.org diff --git a/net-mgmt/telegraf/files/telegraf.in b/net-mgmt/telegraf/files/telegraf.in index 14d663459ad5..f741802d22b5 100644 --- a/net-mgmt/telegraf/files/telegraf.in +++ b/net-mgmt/telegraf/files/telegraf.in @@ -26,8 +26,14 @@ load_rc_config $name : ${telegraf_conf:="%%PREFIX%%/etc/${name}.conf"} # daemon +start_precmd=telegraf_prestart pidfile="/var/run/${name}.pid" command=/usr/sbin/daemon command_args="-crP ${pidfile} %%PREFIX%%/bin/${name} ${telegraf_flags} -config=${telegraf_conf} 2>> /var/log/telegraf.log" +telegraf_prestart() { +# Have to empty rc_flags so they don't get passed to daemon(8) + rc_flags="" +} + run_rc_command "$1" |