Legoktm has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/404965 )
Change subject: Add enable.sh to easily run `systemd enable hound-[...]` ...................................................................... Add enable.sh to easily run `systemd enable hound-[...]` Otherwise everything will be down after the system is rebooted. Change-Id: Id1604604ffd6d77c89d33ea35f870750ba3f8894 --- M README A enable.sh M start.sh 3 files changed, 13 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/labs/codesearch refs/changes/65/404965/1 diff --git a/README b/README index 2f7bf28..16312e5 100644 --- a/README +++ b/README @@ -13,11 +13,13 @@ ./write_config.py sudo cp *.service /etc/systemd/system/ sudo ./start.sh - sudo systemctl start hound_proxy If that works, then curl http://localhost:3002/ should work, and you can point a web proxy to that port. +Once you're happy with what is running, you should run `sudo ./enable.sh` so +that the services will automatically restart upon boot. + == Constraints == We don't want to modify or fork hound. Really we just want to use the upstream docker images without modification. So we use a flask application to proxy diff --git a/enable.sh b/enable.sh new file mode 100755 index 0000000..b0ec20c --- /dev/null +++ b/enable.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# Keep in sync with start.sh +systemctl enable hound-search +systemctl enable hound-core +systemctl enable hound-extensions +systemctl enable hound-skins +systemctl enable hound-things +systemctl enable hound_proxy diff --git a/start.sh b/start.sh index 7e0e29e..aadb733 100755 --- a/start.sh +++ b/start.sh @@ -1,6 +1,8 @@ #!/bin/bash +# Keep in sync with enable.sh systemctl start hound-search systemctl start hound-core systemctl start hound-extensions systemctl start hound-skins systemctl start hound-things +systemctl start hound_proxy -- To view, visit https://gerrit.wikimedia.org/r/404965 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id1604604ffd6d77c89d33ea35f870750ba3f8894 Gerrit-PatchSet: 1 Gerrit-Project: labs/codesearch Gerrit-Branch: master Gerrit-Owner: Legoktm <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
