mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-20 08:27:15 +00:00
Fix service munin-asyncd status.
PR: 231056 Reported by: gerrit kuehn aei mpg de MFH: 2018Q3
This commit is contained in:
parent
dc39415f3f
commit
85efb6936c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=479194
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= munin
|
||||
PORTVERSION= ${MUNIN_VERSION}
|
||||
PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils perl5
|
||||
MASTER_SITES= ${MUNIN_SITES}
|
||||
PKGNAMESUFFIX= -node
|
||||
|
@ -27,7 +27,6 @@ rcvar=munin_asyncd_enable
|
||||
load_rc_config $name
|
||||
|
||||
command="%%DATADIR%%/munin-asyncd"
|
||||
command_interpreter="%%LOCALBASE%%/bin/perl"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
start_cmd=start_cmd
|
||||
stop_cmd='pkill -${sig_stop:-TERM} -U %%USER%% -F ${pidfile}'
|
||||
@ -39,7 +38,7 @@ munin_asyncd_host=${munin_asyncd_host:-localhost:4949}
|
||||
start_cmd()
|
||||
{
|
||||
check_startmsgs && echo "Starting ${name}."
|
||||
daemon -u %%USER%% -f -p ${pidfile} ${command_interpreter} ${command} --spool ${munin_asyncd_spool} --host ${munin_asyncd_host} ${munin_asyncd_args}
|
||||
daemon -u %%USER%% -f -p ${pidfile} "%%LOCALBASE%%/bin/perl" ${command} --spool ${munin_asyncd_spool} --host ${munin_asyncd_host} ${munin_asyncd_args}
|
||||
}
|
||||
|
||||
run_rc_command $1
|
||||
|
Loading…
Reference in New Issue
Block a user