From 57cfec8d18a14413d1bf4d0729bbf34e63598148 Mon Sep 17 00:00:00 2001 From: swills Date: Thu, 30 Aug 2012 03:08:13 +0000 Subject: - Fix rc script status and restart/shutdown PR: ports/170980 Reported by: Nicolas Szalay --- sysutils/mcollective/Makefile | 4 +++- sysutils/mcollective/files/mcollectived.in | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sysutils/mcollective/Makefile b/sysutils/mcollective/Makefile index 23c519beea0e..e31d4c0c65a2 100644 --- a/sysutils/mcollective/Makefile +++ b/sysutils/mcollective/Makefile @@ -7,7 +7,7 @@ PORTNAME= mcollective PORTVERSION= 2.1.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= http://downloads.puppetlabs.com/${PORTNAME}/ EXTRACT_SUFX= .tgz @@ -28,6 +28,8 @@ REINPLACE_ARGS= -i "" SCRIPTS= mco mc-call-agent +SUB_LIST+= RUBY=${RUBY} + do-patch: @${REINPLACE_CMD} -e "s|/etc/mcollective|${ETCDIR}|" \ ${WRKSRC}/bin/mcollectived \ diff --git a/sysutils/mcollective/files/mcollectived.in b/sysutils/mcollective/files/mcollectived.in index 057259d704ef..24abc8f8a168 100644 --- a/sysutils/mcollective/files/mcollectived.in +++ b/sysutils/mcollective/files/mcollectived.in @@ -25,6 +25,6 @@ load_rc_config "${name}" pidfile="/var/run/${name}.pid" command="%%PREFIX%%/sbin/${name}" command_args="-p $pidfile" -procname="ruby" +command_interpreter=%%RUBY%% run_rc_command "$1" -- cgit