Skip to content
Snippets Groups Projects
Commit 0a9622d7 authored by jurgenhaas's avatar jurgenhaas
Browse files

Add readme and improve start script

parent d6d515c8
No related branches found
No related tags found
No related merge requests found
- GitHub: https://github.com/Yelp/elastalert
- ReadTheDocs: https://elastalert.readthedocs.io/en/latest/
# ElastAlert
# https://github.com/Yelp/elastalert
---
# file: roles/elastalert/tasks/main.yml
......
......@@ -18,12 +18,10 @@ case "$1" in
echo "Starting ElastAlert ..."
cd /opt/elastalert
/usr/local/bin/elastalert &
exit 0
;;
stop)
echo "Stoping ElastAlert ..."
kill `pidof /usr/bin/python /usr/local/bin/elastalert` && echo "ElastAlert stopped"
exit 0
;;
restart)
$0 stop
......@@ -35,4 +33,4 @@ case "$1" in
;;
esac
exit $?
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment