Changeset View
Changeset View
Standalone View
Standalone View
net/ceph14/files/ceph.in
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
#!/bin/sh | |||||
# | |||||
# $FreeBSD: head/net/ceph13/files/ceph.in 477944 2018-08-24 07:45:53Z jhale $ | |||||
# | |||||
# 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" | |||||