# HG changeset patch
# User Gernot Schulz <gernot@intevation.de>
# Date 1445254469 -7200
# Node ID 1e084c23d101e39f6b9f1c11c88e12354a75cb0f
# Parent  295e3253bb491330bdd9b36012a9ca88aab91a54
Add --start/--stop commands

diff -r 295e3253bb49 -r 1e084c23d101 contrib/dashboardctl
--- a/contrib/dashboardctl	Mon Oct 19 13:30:30 2015 +0200
+++ b/contrib/dashboardctl	Mon Oct 19 13:34:29 2015 +0200
@@ -15,12 +15,14 @@
 Usage: $0 [COMMAND]
 
 Commands:
+  --start            Start Bottledash and the dashboard/browser
+  --stop             Stop Bottledash and the dashboard/browser
+  --reload           Restart Bottledash and reload the dashboard/browser
+  --smart-reload     If a new DB is available, restart Bottledash and reload
+                     the dashboard/browser
   --restart-bd       Restart Bottledash
   --reload-browser   Reload dashboard/browser
-  --reload           Restart Bottledash and reload the dashboard/browser
   --check-db         Check if a new DB is available
-  --smart-reload     If a new DB is available, restart Bottledash and reload
-                     the dashboard/browser
   -h, --help         This help
 EOF
 }
@@ -81,6 +83,14 @@
 }
 
 case $1 in
+	'--start')
+		start_bottledash
+		start_chromium
+		;;
+	'--stop')
+		stop_bottledash
+		stop_chromium
+		;;
         '--restart-bd')
                 stop_bottledash
                 start_bottledash