mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-23 15:56:45 -04:00
Updated aws start/stop scripts to handle multiple start/stop scripts
Primarily to handle the two celery processes
This commit is contained in:
@@ -7,9 +7,29 @@ function error_exit
|
||||
exit 0
|
||||
}
|
||||
|
||||
echo "Stopping application"
|
||||
if sudo service notifications-api stop; then
|
||||
exit 0
|
||||
else
|
||||
error_exit "Could not stop application"
|
||||
fi
|
||||
if [ -e "/etc/init/notifications-api.conf" ]; then
|
||||
echo "stopping notifications-api"
|
||||
if sudo service notifications-api stop; then
|
||||
echo "notifications-api stopped"
|
||||
else
|
||||
error_exit "Could not stop notifications-api"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -e "/etc/init/notifications-api-celery-beat.conf" ]; then
|
||||
echo "stopping notifications-api-celery-beat"
|
||||
if sudo service notifications-api-celery-beat stop; then
|
||||
echo "notifications-api stopped"
|
||||
else
|
||||
error_exit "Could not stop notifications-celery-beat"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -e "/etc/init/notifications-api-celery-worker.conf" ]; then
|
||||
echo "stopping notifications-api-celery-worker"
|
||||
if sudo service notifications-api-celery-worker stop; then
|
||||
echo "notifications-api stopped"
|
||||
else
|
||||
error_exit "Could not stop notifications-celery-worker"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user