diff options
author | swills <swills@FreeBSD.org> | 2011-08-14 06:39:50 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2011-08-14 06:39:50 +0800 |
commit | da2786a57d7f72600adc6168f540ee2b9ef68573 (patch) | |
tree | 34d2c108226661c733db8b53d0c4a5e7770cde67 /sysutils/mcollective | |
parent | d2c9c232d25ce5e1808da618eaf728c85649d5d8 (diff) | |
download | freebsd-ports-gnome-da2786a57d7f72600adc6168f540ee2b9ef68573.tar.gz freebsd-ports-gnome-da2786a57d7f72600adc6168f540ee2b9ef68573.tar.zst freebsd-ports-gnome-da2786a57d7f72600adc6168f540ee2b9ef68573.zip |
- 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
Diffstat (limited to 'sysutils/mcollective')
-rw-r--r-- | sysutils/mcollective/files/mcollectived.in | 21 |
1 files changed, 15 insertions, 6 deletions
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" |