Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Examples: only terminate vtadmin if it was started (vitessio#13433)
* Do not error stopping vtadmin web and api if pidd files do not exist. For fixing below. vitessio#13432 Signed-off-by: Jean-François Gagné <jfg956@users.noreply.github.com> * Get rid of code duplication in vtadmin-down.sh. Signed-off-by: Jean-François Gagné <jfg956@users.noreply.github.com> * Use bash test Signed-off-by: Matt Lord <mattalord@gmail.com> * Use SIGTERM and wait for process to end Signed-off-by: Matt Lord <mattalord@gmail.com> * Validate function parameters Signed-off-by: Matt Lord <mattalord@gmail.com> * Add license header Signed-off-by: Matt Lord <mattalord@gmail.com> * Move vtadmin stop function to utils Signed-off-by: Matt Lord <mattalord@gmail.com> * Generalize simple process shutdown with timeout Signed-off-by: Matt Lord <mattalord@gmail.com> * Correct output Signed-off-by: Matt Lord <mattalord@gmail.com> * Remove now redundant log message Signed-off-by: Matt Lord <mattalord@gmail.com> * Corrections Signed-off-by: Matt Lord <mattalord@gmail.com> * Add missing license header to modified file Signed-off-by: Matt Lord <mattalord@gmail.com> * Only check PID if we killed it Signed-off-by: Matt Lord <mattalord@gmail.com> * Remove mix of spaces and tabs Signed-off-by: Matt Lord <mattalord@gmail.com> --------- Signed-off-by: Jean-François Gagné <jfg956@users.noreply.github.com> Signed-off-by: Matt Lord <mattalord@gmail.com> Co-authored-by: Matt Lord <mattalord@gmail.com>
- Loading branch information