Changeset View
Changeset View
Standalone View
Standalone View
net/ceph-devel/files/ceph.in
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:executable | null | * \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
#!/bin/sh | |||||
# | |||||
# $FreeBSD: branches/2016Q4/net/ceph/files/cephd.in 367807 2014-09-10 09:36:24Z ehaupt $ | |||||
# | |||||
asomers: Remember to shorten this to just `$FreeBSD$` before you commit it. | |||||
# PROVIDE: ceph | |||||
# REQUIRE: LOGIN | |||||
# BEFORE: securelevel | |||||
# KEYWORD: shutdown | |||||
# Add the following lines to /etc/rc.conf to enable `ceph': | |||||
# | |||||
# ceph_enable="YES" | |||||
# ceph_flags="<set as needed>" | |||||
# | |||||
# See ceph(1) for ceph_flags | |||||
# | |||||
Done Inline Actionsceph_flags is never used here. mat: `ceph_flags` is never used here. | |||||
. /etc/rc.subr | |||||
PATH=$PATH:/usr/local/bin:/usr/local/sbin | |||||
Done Inline ActionsDont hardcode /usr/local anywhere in this file. Use %%PREFIX%% instead. asomers: Dont hardcode `/usr/local` anywhere in this file. Use `%%PREFIX%%` instead. | |||||
name="ceph" | |||||
rcvar=ceph_enable | |||||
extra_commands="condrestart" | |||||
# read configuration and set defaults | |||||
Done Inline Actions/usr/local/ snuck back in. Please replace it with %%PREFIX%%. asomers: /usr/local/ snuck back in. Please replace it with %%PREFIX%%. | |||||
Done Inline ActionsYah, that is such a fixed brain pattern. wjw_digiware.nl: Yah, that is such a fixed brain pattern. | |||||
: ${ceph_enable="NO"} | |||||
: ${ceph_configfile:=/etc/ceph/ceph.conf} | |||||
start_cmd="cephstart_cmd" | |||||
stop_cmd="cephstop_cmd" | |||||
restart_cmd="cephrestart_cmd" | |||||
condrestart_cmd="cepconfhrestart_cmd" | |||||
Done Inline ActionsFix the spelling here asomers: Fix the spelling here | |||||
cephstart_cmd() | |||||
{ /usr/local/bin/init-ceph start $* | |||||
} | |||||
Done Inline ActionsOpening { should be on its own line asomers: Opening { should be on its own line | |||||
cephstop_cmd() | |||||
{ /usr/local/bin/init-ceph stop $* | |||||
} | |||||
cephrestart_cmd() | |||||
{ /usr/local/bin/init-ceph restart $* | |||||
} | |||||
cephcondrestart_cmd() | |||||
{ /usr/local/bin/init-ceph condrestart $* | |||||
} | |||||
run_rc_command "$1" | |||||
Remember to shorten this to just $FreeBSD$ before you commit it.