sysutils/mackerel-agent: improve rc script

not to spit out logs on console.
This commit is contained in:
Koichiro Iwao 2020-04-26 13:28:34 +00:00
parent 53803b1415
commit eece81fc3b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=533060
2 changed files with 10 additions and 1 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= mackerel-agent
DISTVERSIONPREFIX= v
DISTVERSION= 0.67.1
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= meta@FreeBSD.org

View file

@ -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"