summaryrefslogtreecommitdiff
path: root/net/ceph12/files/ceph.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/ceph12/files/ceph.in')
-rw-r--r--net/ceph12/files/ceph.in36
1 files changed, 36 insertions, 0 deletions
diff --git a/net/ceph12/files/ceph.in b/net/ceph12/files/ceph.in
new file mode 100644
index 000000000000..4c04cccb55d3
--- /dev/null
+++ b/net/ceph12/files/ceph.in
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: ceph
+# REQUIRE: LOGIN
+# BEFORE: securelevel
+# KEYWORD: shutdown
+
+# Add the following lines to /etc/rc.conf to enable `ceph':
+#
+# ceph_enable="YES"
+#
+
+. /etc/rc.subr
+
+PATH=$PATH:%%PREFIX%%/bin:%%PREFIX%%/sbin
+
+name="ceph"
+rcvar=${name}_enable
+extra_commands="condrestart"
+
+load_rc_config ${name}
+
+# read configuration and set defaults
+: ${ceph_enable="NO"}
+: ${ceph_configfile:=%%PREFIX%%/etc/ceph/ceph.conf}
+
+start_cmd="%%PREFIX%%/bin/init-ceph $*"
+stop_cmd="%%PREFIX%%/bin/init-ceph $*"
+restart_cmd="%%PREFIX%%/bin/init-ceph $*"
+condrestart_cmd="%%PREFIX%%/bin/init-ceph $*"
+
+run_rc_command "$1"
+