2016-09-20 11:49:01 +01:00
|
|
|
#!/usr/bin/env bash
|
2015-12-15 16:26:56 +00:00
|
|
|
|
2016-09-20 11:49:01 +01:00
|
|
|
set -eo pipefail
|
2016-03-15 14:51:40 +00:00
|
|
|
|
2016-09-20 11:49:01 +01:00
|
|
|
function start
|
|
|
|
|
{
|
|
|
|
|
service=$1
|
|
|
|
|
if [ -e "/etc/init/${service}.conf" ]
|
|
|
|
|
then
|
|
|
|
|
echo "Starting ${service}"
|
|
|
|
|
service ${service} start
|
|
|
|
|
fi
|
|
|
|
|
}
|
2016-03-15 14:51:40 +00:00
|
|
|
|
2016-09-20 11:49:01 +01:00
|
|
|
start "notifications-api"
|
|
|
|
|
start "notifications-api-celery-worker"
|
|
|
|
|
start "notifications-api-celery-worker-sender"
|
2016-09-30 11:23:54 +01:00
|
|
|
start "notifications-api-celery-worker-research"
|
2016-09-20 11:49:01 +01:00
|
|
|
start "notifications-api-celery-worker-db"
|
|
|
|
|
start "notifications-api-celery-beat"
|