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
This commit is contained in:
Dmitry Smirnov 2014-03-25 22:10:48 +11:00
parent e5a4f5ed00
commit 012bb5fb5b
3 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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