Mercurial > bottledash
changeset 36:1e084c23d101
Add --start/--stop commands
author | Gernot Schulz <gernot@intevation.de> |
---|---|
date | Mon, 19 Oct 2015 13:34:29 +0200 |
parents | 295e3253bb49 |
children | 58ca5b1d33a5 |
files | contrib/dashboardctl |
diffstat | 1 files changed, 13 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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