mirror of
https://github.com/ceph/ceph
synced 2025-01-20 18:21:57 +00:00
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:
parent
e5a4f5ed00
commit
012bb5fb5b
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user