c04679110d
PR: ports/170980 Reported by: Nicolas Szalay <nicolas.szalay@fotolia.com>
30 lines
600 B
Bash
30 lines
600 B
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: mcollectived
|
|
# 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=mcollectived_enable
|
|
|
|
load_rc_config "${name}"
|
|
|
|
: ${mcollectived_enable="NO"}
|
|
|
|
pidfile="/var/run/${name}.pid"
|
|
command="%%PREFIX%%/sbin/${name}"
|
|
command_args="-p $pidfile"
|
|
command_interpreter=%%RUBY%%
|
|
|
|
run_rc_command "$1"
|