From 1c4ea83902e2a64472ccf99ced4ea773ad3dd8aa Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Wed, 23 Apr 2014 16:34:28 +0200 Subject: git-remote-mediawiki: allow stop/start-ing the test server Previously, the user had to launch a complete re-install after a lighttpd stop (e.g. a reboot). Signed-off-by: Matthieu Moy Signed-off-by: Junio C Hamano --- contrib/mw-to-git/t/install-wiki.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'contrib/mw-to-git/t/install-wiki.sh') diff --git a/contrib/mw-to-git/t/install-wiki.sh b/contrib/mw-to-git/t/install-wiki.sh index 70a53f67fd..c215213c4b 100755 --- a/contrib/mw-to-git/t/install-wiki.sh +++ b/contrib/mw-to-git/t/install-wiki.sh @@ -20,6 +20,8 @@ usage () { echo " install | -i : Install a wiki on your computer." echo " delete | -d : Delete the wiki and all its pages and " echo " content." + echo " start | -s : Start the previously configured lighttpd daemon" + echo " stop : Stop lighttpd daemon." } @@ -33,6 +35,14 @@ case "$1" in wiki_delete exit 0 ;; + "start" | "-s") + start_lighttpd + exit + ;; + "stop") + stop_lighttpd + exit + ;; "--help" | "-h") usage exit 0 -- cgit 1.2.3-korg