svn commit: r533060 - in head/sysutils/mackerel-agent: . files
Koichiro Iwao
meta at FreeBSD.org
Sun Apr 26 13:28:35 UTC 2020
Author: meta
Date: Sun Apr 26 13:28:34 2020
New Revision: 533060
URL: https://svnweb.freebsd.org/changeset/ports/533060
Log:
sysutils/mackerel-agent: improve rc script
not to spit out logs on console.
Modified:
head/sysutils/mackerel-agent/Makefile
head/sysutils/mackerel-agent/files/mackerel_agent.in
Modified: head/sysutils/mackerel-agent/Makefile
==============================================================================
--- head/sysutils/mackerel-agent/Makefile Sun Apr 26 13:07:28 2020 (r533059)
+++ head/sysutils/mackerel-agent/Makefile Sun Apr 26 13:28:34 2020 (r533060)
@@ -3,6 +3,7 @@
PORTNAME= mackerel-agent
DISTVERSIONPREFIX= v
DISTVERSION= 0.67.1
+PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= meta at FreeBSD.org
Modified: head/sysutils/mackerel-agent/files/mackerel_agent.in
==============================================================================
--- head/sysutils/mackerel-agent/files/mackerel_agent.in Sun Apr 26 13:07:28 2020 (r533059)
+++ head/sysutils/mackerel-agent/files/mackerel_agent.in Sun Apr 26 13:28:34 2020 (r533060)
@@ -20,6 +20,14 @@ load_rc_config ${name}
: ${mackerel_agent_config:=%%ETCDIR%%/mackerel-agent.conf}
command="%%PREFIX%%/bin/mackerel-agent"
-command_args="--conf=${mackerel_agent_config} &"
+required_files="${mackerel_agent_config}"
+command_args="supervise -conf ${mackerel_agent_config} ${mackerel_agent_flags}"
+
+start_cmd=mackerel_agent_start
+
+mackerel_agent_start()
+{
+ /usr/sbin/daemon -cf -S -T mackerel-agent ${command} ${command_args}
+}
run_rc_command "$1"
More information about the svn-ports-all
mailing list