From: Dmitry Smirnov Date: Tue, 25 Mar 2014 11:10:48 +0000 (+1100) Subject: minor init.d scripts lintianisation: X-Git-Tag: v0.79~94^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=012bb5fb5bbc76e5a2c5037dc0c6558f0b1b0a45;p=ceph.git minor init.d scripts lintianisation: * init.d-script-does-not-source-init-functions * init.d-script-does-not-implement-required-option * init.d-script-missing-lsb-description --- diff --git a/src/init-ceph.in b/src/init-ceph.in index dac00d9054cf..fb83d468c253 100644 --- a/src/init-ceph.in +++ b/src/init-ceph.in @@ -12,6 +12,8 @@ # Description: Enable Ceph distributed file system services. ### END INIT INFO +. /lib/lsb/init-functions + # if we start up as ./mkcephfs, assume everything else is in the # current directory too. if [ `dirname $0` = "." ] && [ $PWD != "/etc/init.d" ]; then diff --git a/src/init-radosgw b/src/init-radosgw index caa05cb5cc4d..c38ddad616e5 100644 --- a/src/init-radosgw +++ b/src/init-radosgw @@ -6,6 +6,7 @@ # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: radosgw RESTful rados gateway +# Description: radosgw RESTful rados gateway ### END INIT INFO PATH=/sbin:/bin:/usr/bin diff --git a/src/init-rbdmap b/src/init-rbdmap index 01fe0fba87ac..5486379f0a42 100755 --- a/src/init-rbdmap +++ b/src/init-rbdmap @@ -93,6 +93,11 @@ case "$1" in do_unmap ;; + restart|force-reload) + $0 stop + $0 start + ;; + reload) do_map ;; @@ -102,7 +107,7 @@ case "$1" in ;; *) - log_success_msg "Usage: rbdmap {start|stop|reload|status}" + log_success_msg "Usage: rbdmap {start|stop|restart|force-reload|reload|status}" exit 1 ;; esac