2015-12-15 16:26:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2016-03-15 14:51:40 +00:00
|
|
|
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
|
|
|
|
|
|
2016-08-31 11:40:47 +01:00
|
|
|
if [ -e "/etc/init/notifications-api-celery-worker-sender.conf" ]
|
|
|
|
|
then
|
|
|
|
|
echo "Starting celery worker"
|
|
|
|
|
sudo service notifications-api-celery-worker-sender start
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ -e "/etc/init/notifications-api-celery-worker-db.conf" ]
|
|
|
|
|
then
|
|
|
|
|
echo "Starting celery worker"
|
|
|
|
|
sudo service notifications-api-celery-worker-db start
|
|
|
|
|
fi
|
|
|
|
|
|
2016-03-15 14:51:40 +00:00
|
|
|
if [ -e "/etc/init/notifications-api-celery-beat.conf" ]
|
|
|
|
|
then
|
|
|
|
|
echo "Starting celery beat"
|
|
|
|
|
sudo service notifications-api-celery-beat start
|
|
|
|
|
fi
|