aboutsummaryrefslogtreecommitdiff
path: root/sysutils/cmogstored/files
diff options
context:
space:
mode:
authorMikolaj Golub <trociny@FreeBSD.org>2013-12-10 19:42:07 +0000
committerMikolaj Golub <trociny@FreeBSD.org>2013-12-10 19:42:07 +0000
commit38ea77033f55208b7f02dd11452c54cbb8667e03 (patch)
tree812d7b66f380b65fe8840216391814d4647f6ad0 /sysutils/cmogstored/files
parentb38132efbd0fc87b4c38342350f5c387a4afa599 (diff)
Notes
Diffstat (limited to 'sysutils/cmogstored/files')
-rw-r--r--sysutils/cmogstored/files/cmogstored.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/sysutils/cmogstored/files/cmogstored.in b/sysutils/cmogstored/files/cmogstored.in
new file mode 100644
index 000000000000..72c182d25c4a
--- /dev/null
+++ b/sysutils/cmogstored/files/cmogstored.in
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: cmogstored
+# REQUIRE: LOGIN cleanvar
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name=cmogstored
+rcvar=cmogstored_enable
+
+load_rc_config cmogstored
+
+: ${cmogstored_enable:="NO"}
+: ${cmogstored_config:="%%PREFIX%%/etc/mogstored.conf"}
+
+required_files="${cmogstored_config}"
+
+command="%%PREFIX%%/sbin/${name}"
+command_args="--config='${cmogstored_config}' -d"
+
+run_rc_command "$1"