From 90ac159a520a76f43ea651582c66e320fe120f4c Mon Sep 17 00:00:00 2001 From: Lucas Bickel Date: Sat, 18 Mar 2017 12:28:17 +0100 Subject: [PATCH] Restart services always with systemd This essentially results in the same behaviour legacy upstream was exploiting in upstart. Normally I would argue that depending on such a feature as part of an applications runtime feature-set is bad. This applies, but until we can get that sorted at another leevel this makes everything work as intendend when running tthrough systemd. --- installer/systemd/airtime-celery.service | 1 + installer/systemd/airtime-liquidsoap.service | 1 + installer/systemd/airtime-playout.service | 1 + installer/systemd/airtime_analyzer.service | 1 + 4 files changed, 4 insertions(+) diff --git a/installer/systemd/airtime-celery.service b/installer/systemd/airtime-celery.service index 59ae1ec3b..54e2e36cc 100644 --- a/installer/systemd/airtime-celery.service +++ b/installer/systemd/airtime-celery.service @@ -8,6 +8,7 @@ Group=celery Environment=RMQ_CONFIG_FILE=/etc/airtime/airtime.conf WorkingDirectory=/srv/airtime ExecStart=/bin/celery worker -A airtime-celery.tasks:celery --time-limit=300 --concurrency=1 --config=celeryconfig -l INFO +Restart=always [Install] WantedBy=multi-user.target diff --git a/installer/systemd/airtime-liquidsoap.service b/installer/systemd/airtime-liquidsoap.service index 07e8e6e4b..0c0db348a 100644 --- a/installer/systemd/airtime-liquidsoap.service +++ b/installer/systemd/airtime-liquidsoap.service @@ -5,6 +5,7 @@ Description=Airtime Liquidsoap Service ExecStart=/usr/bin/airtime-liquidsoap User=libretime-playout Group=libretime-playout +Restart=always [Install] WantedBy=multi-user.target diff --git a/installer/systemd/airtime-playout.service b/installer/systemd/airtime-playout.service index af58c345b..35d07c49b 100644 --- a/installer/systemd/airtime-playout.service +++ b/installer/systemd/airtime-playout.service @@ -5,6 +5,7 @@ Description=Airtime Playout Service ExecStart=/usr/bin/airtime-playout User=libretime-pypo Group=libretime-pypo +Restart=always [Install] WantedBy=multi-user.target diff --git a/installer/systemd/airtime_analyzer.service b/installer/systemd/airtime_analyzer.service index 58743377a..4a0231907 100644 --- a/installer/systemd/airtime_analyzer.service +++ b/installer/systemd/airtime_analyzer.service @@ -5,6 +5,7 @@ Description=LibreTime Media Analyzer Service ExecStart=/usr/bin/airtime_analyzer User=airtime-analyzer Group=airtime-analyzer +Restart=always [Install] WantedBy=multi-user.target