mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
sysutils/mackerel-agent: improve rc script
not to spit out logs on console.
This commit is contained in:
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
|
@ -3,6 +3,7 @@
|
|||
PORTNAME= mackerel-agent
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.67.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
|
||||
MAINTAINER= meta@FreeBSD.org
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue