From da2786a57d7f72600adc6168f540ee2b9ef68573 Mon Sep 17 00:00:00 2001 From: swills Date: Sat, 13 Aug 2011 22:39:50 +0000 Subject: - Fix various rc issues that should have been caught at initial commit: - Add a $FreeBSD$ - REQUIRE: LOGIN instead of REQUIRE: DAEMON - Add config comments - Move load_rc_config up to what will soon become the standard location. - s#/usr/local#%%PREFIX%%# - Since the -p option is almost certainly mandatory here, use command_args instead of _flags. Submitted by: dougb Pointy hat to: swills --- sysutils/mcollective/files/mcollectived.in | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'sysutils/mcollective') diff --git a/sysutils/mcollective/files/mcollectived.in b/sysutils/mcollective/files/mcollectived.in index 5a016ae15eb5..f3f72a442ed8 100644 --- a/sysutils/mcollective/files/mcollectived.in +++ b/sysutils/mcollective/files/mcollectived.in @@ -1,21 +1,30 @@ #!/bin/sh +# $FreeBSD$ +# # PROVIDE: mcollectived -# REQUIRE: DAEMON +# REQUIRE: LOGIN # KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# mcollectived_enable (bool): Set to NO by default. +# Set it to YES to enable mcollectived. +# mcollectived_flags (str): Set as needed. Empty by default. . /etc/rc.subr name="mcollectived" rcvar="${name}_enable" -command="/usr/local/sbin/${name}" -pidfile="/var/run/${name}.pid" -procname="ruby" - load_rc_config "${name}" : ${mcollectived_enable="NO"} -: ${mcollectived_flags="-p ${pidfile}"} + +pidfile="/var/run/${name}.pid" +command="%%PREFIX%%/sbin/${name}" +command_args="-p $pidfile" +procname="ruby" run_rc_command "$1" -- cgit