aboutsummaryrefslogtreecommitdiff
path: root/net/ceph14/files/ceph.in
blob: 4c04cccb55d34d22d0f2f1302c41596de12374a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"