2 Commits

Author SHA1 Message Date
Ian Wienand
d66ebca331 Fix codesearch stderr capturing
Fix the stderr capture

Update the script slightly to be more robust cleaning up with an exit
trap, and put a date stamp in when the script starts to differentiate
runs in the logs.

Change-Id: Ie7a75d9151734799c4e4767e75f750b05957205b
2017-12-20 16:02:38 +11:00
Ian Wienand
795bf1c971 Fixes for codesearch resync
This provides a script to resync the hound configuration for
codesearch.

It checks if the config needs updating, and if so, puts the new config
file in place, takes the reindex lock from
I9d28201bca75b624e07cbba14c870151094fc7ae and restarts the service,
waiting until it sees it is up.

puppet is currently disabled on this host because updates are tied to
project-config changes; since restarting takes the service down this
is obviously not great.

Change-Id: Iaebf50836607da447dcf1765ec01d0121537b0da
Depends-On: I9d28201bca75b624e07cbba14c870151094fc7ae
2017-12-14 09:48:01 +11:00