summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDmitry Smirnov <onlyjob@member.fsf.org>2014-03-25 12:10:48 +0100
committerDmitry Smirnov <onlyjob@member.fsf.org>2014-03-25 12:10:48 +0100
commit012bb5fb5bbc76e5a2c5037dc0c6558f0b1b0a45 (patch)
treed8c3460d35e3f3cddf4db47c73eb0cf237b00a3c /src
parentMerge pull request #1528 from ceph/wip-dz-watch-test (diff)
downloadceph-012bb5fb5bbc76e5a2c5037dc0c6558f0b1b0a45.tar.xz
ceph-012bb5fb5bbc76e5a2c5037dc0c6558f0b1b0a45.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/init-ceph.in2
-rw-r--r--src/init-radosgw1
-rwxr-xr-xsrc/init-rbdmap7
3 files changed, 9 insertions, 1 deletions
diff --git a/src/init-ceph.in b/src/init-ceph.in
index dac00d9054c..fb83d468c25 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 caa05cb5cc4..c38ddad616e 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 01fe0fba87a..5486379f0a4 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