B fix the cubicweb init script stable
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Tue, 25 Aug 2009 23:52:07 +0200
branchstable
changeset 3001 74e842e4871a
parent 3000 4e76477949d5
child 3002 a9d7eaa07475
child 3004 09ab5e93a02c
B fix the cubicweb init script
debian/cubicweb-ctl.cubicweb.init
--- a/debian/cubicweb-ctl.cubicweb.init	Tue Aug 25 23:34:30 2009 +0200
+++ b/debian/cubicweb-ctl.cubicweb.init	Tue Aug 25 23:52:07 2009 +0200
@@ -22,11 +22,14 @@
 # Check if we are sure to not want the start-stop-daemon machinery here
 # Refer to Debian Policy Manual section 9.3.2 (Writing the scripts) for details.
 
-case "$1" in
-	"force-reload")
-		/usr/bin/cubicweb-ctl reload --force
-		;;
-	"*|restart")
-		/usr/bin/cubicweb-ctl $1 --force
-		;;
+case $1 in
+    force-reload)
+        /usr/bin/cubicweb-ctl reload --force
+        ;;
+    status)
+        /usr/bin/cubicweb-ctl status
+        ;;
+    *)
+        /usr/bin/cubicweb-ctl $1 --force
+        ;;
 esac