Updated aws start/stop scripts to handle multiple start/stop scripts

Primarily to handle the two celery processes
This commit is contained in:
Martyn Inglis
2016-03-15 14:51:40 +00:00
parent 0be235e551
commit 001c875d02
2 changed files with 43 additions and 8 deletions

View File

@@ -1,4 +1,19 @@
#!/bin/bash
echo "Starting application"
sudo service notifications-api start
if [ -e "/etc/init/notifications-api.conf" ]
then
echo "Starting api"
sudo service notifications-api start
fi
if [ -e "/etc/init/notifications-api-celery-worker.conf" ]
then
echo "Starting celery worker"
sudo service notifications-api-celery-worker start
fi
if [ -e "/etc/init/notifications-api-celery-beat.conf" ]
then
echo "Starting celery beat"
sudo service notifications-api-celery-beat start
fi