summaryrefslogtreecommitdiff
path: root/contrib/mw-to-git/t/install-wiki.sh
diff options
context:
space:
mode:
authorLibravatar Matthieu Moy <Matthieu.Moy@imag.fr>2014-04-23 16:34:28 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-04-23 15:22:53 -0700
commit1c4ea83902e2a64472ccf99ced4ea773ad3dd8aa (patch)
tree107ff6437e7687e5b72fb2bec187d79aa4c31ac7 /contrib/mw-to-git/t/install-wiki.sh
parentUpdate draft release notes to 2.0 (diff)
downloadtgif-1c4ea83902e2a64472ccf99ced4ea773ad3dd8aa.tar.xz
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 <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/mw-to-git/t/install-wiki.sh')
-rwxr-xr-xcontrib/mw-to-git/t/install-wiki.sh10
1 files changed, 10 insertions, 0 deletions
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