[Pkg-ceph-commits] [ceph] 04/16: init.patch: new patch for init.d lintianisation
Dmitry Smirnov
onlyjob at moszumanska.debian.org
Tue Mar 25 02:13:53 UTC 2014
This is an automated email from the git hooks/post-receive script.
onlyjob pushed a commit to branch experimental
in repository ceph.
commit 6e136e5
Author: Dmitry Smirnov <onlyjob at member.fsf.org>
Date: Mon Mar 24 14:37:52 2014
init.patch: new patch for init.d lintianisation
---
debian/patches/init.patch | 60 +++++++++++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 61 insertions(+)
diff --git a/debian/patches/init.patch b/debian/patches/init.patch
new file mode 100644
index 0000000..6f16f7c
--- /dev/null
+++ b/debian/patches/init.patch
@@ -0,0 +1,60 @@
+Last-Update: 2014-03-24
+Forwarded: not-needed
+Author: Dmitry Smirnov <onlyjob at member.fsf.org>
+Description: init.d script(s) corrections
+ * init.d-script-does-not-source-init-functions
+ * init.d-script-does-not-implement-required-option
+ * init.d-script-missing-lsb-description
+
+--- a/src/init-ceph.in
++++ b/src/init-ceph.in
+@@ -11,8 +11,10 @@
+ # Short-Description: Start Ceph distributed file system daemons at boot time
+ # 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
+ BINDIR=.
+--- a/src/init-rbdmap
++++ b/src/init-rbdmap
+@@ -92,8 +92,13 @@
+ stop)
+ do_unmap
+ ;;
+
++ restart|force-reload)
++ $0 stop
++ $0 start
++ ;;
++
+ reload)
+ do_map
+ ;;
+
+@@ -101,9 +106,9 @@
+ rbd showmapped
+ ;;
+
+ *)
+- log_success_msg "Usage: rbdmap {start|stop|reload|status}"
++ log_success_msg "Usage: rbdmap {start|stop|restart|force-reload|reload|status}"
+ exit 1
+ ;;
+ esac
+
+--- a/src/init-radosgw
++++ b/src/init-radosgw
+@@ -5,8 +5,9 @@
+ # Required-Stop: $remote_fs $named $network $time
+ # 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/debian/patches/series b/debian/patches/series
index 8e560e8..f2f304c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
virtualenv-never-download
modules.patch
+init.patch
--
Alioth's hooks/post-receive on /srv/git.debian.org/git/pkg-ceph/ceph.git
More information about the Pkg-ceph-commits
mailing list