summaryrefslogtreecommitdiff
path: root/sysutils/mcollective/files/mcollectived.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/mcollective/files/mcollectived.sh')
-rwxr-xr-xsysutils/mcollective/files/mcollectived.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/sysutils/mcollective/files/mcollectived.sh b/sysutils/mcollective/files/mcollectived.sh
new file mode 100755
index 00000000000..d56c7624b33
--- /dev/null
+++ b/sysutils/mcollective/files/mcollectived.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# $NetBSD: mcollectived.sh,v 1.1 2012/08/12 09:15:57 imil Exp $
+#
+# PROVIDE: mcollectived
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="mcollectived"
+rcvar=${name}
+command="@PREFIX@/sbin/mcollectived"
+required_files="@PKG_SYSCONFDIR@/mcollective/server.cfg"
+pidfile="@VARBASE@/run/mcollectived.pid"
+command_args="-p ${pidfile}"
+procname="@RUBY@"
+
+load_rc_config $name
+run_rc_command "$1"