debian/cubicweb-ctl.cubicweb.init
branchstable
changeset 3001 74e842e4871a
parent 858 e6ae125d5903
child 6803 691dac4c6a05
--- 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