Don't run ps since it might fail (for now...)
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
547edf0080
commit
41109378eb
@ -5,25 +5,16 @@ set -eu -o pipefail
|
|||||||
run_alerta_mailer() {
|
run_alerta_mailer() {
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
alerta-mailer &
|
nohup alerta-mailer &
|
||||||
|
|
||||||
echo "-----> alerta-mailer is running..."
|
echo "-----> alerta-mailer is running..."
|
||||||
}
|
}
|
||||||
|
|
||||||
run_ps_background_check() {
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
ps -aux | grep -i mailer
|
|
||||||
|
|
||||||
echo "-----> ps grep output ^^^"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Main entrypoint
|
# Main entrypoint
|
||||||
main() {
|
main() {
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
run_alerta_mailer
|
run_alerta_mailer
|
||||||
run_ps_background_check
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
Reference in New Issue
Block a user