Changeset View
Changeset View
Standalone View
Standalone View
head/net/ceph-devel/files/ceph.in
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
#!/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=ceph_enable | |||||
extra_commands="condrestart" | |||||
# read configuration and set defaults | |||||
: ${ceph_enable="NO"} | |||||
: ${ceph_configfile:=%%PREFIX%%/etc/ceph/ceph.conf} | |||||
start_cmd="cephstart_cmd" | |||||
stop_cmd="cephstop_cmd" | |||||
restart_cmd="cephrestart_cmd" | |||||
condrestart_cmd="cephcondrestart_cmd" | |||||
cephstart_cmd() | |||||
{ | |||||
%%PREFIX%%/bin/init-ceph start $* | |||||
} | |||||
cephstop_cmd() | |||||
{ | |||||
%%PREFIX%%/bin/init-ceph stop $* | |||||
} | |||||
cephrestart_cmd() | |||||
{ | |||||
%%PREFIX%%/bin/init-ceph restart $* | |||||
} | |||||
cephcondrestart_cmd() | |||||
{ | |||||
%%PREFIX%%/bin/init-ceph condrestart $* | |||||
} | |||||
run_rc_command "$1" | |||||