Преглед на файлове

Delayed service restart to avoid hammering the logs with errors

Lukas Angerer преди 8 месеца
родител
ревизия
d4aa60a4f5
променени са 3 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 1 0
      service-units/cron-alarm.service
  2. 1 0
      service-units/cron-api.service
  3. 1 0
      service-units/mopidy.service

+ 1 - 0
service-units/cron-alarm.service

@@ -6,6 +6,7 @@ Description=CronAlarm Web UI
 
 [Service]
 Restart=always
+RestartSec=10
 # Shutdown container (if running) when unit is stopped
 ExecStartPre=/usr/bin/docker compose -f %h/projects/CronAlarm/docker-compose.yml down -v
 # Start container when unit is started

+ 1 - 0
service-units/cron-api.service

@@ -4,6 +4,7 @@ Description=CronAlarm Host API
 [Service]
 Type=simple
 Restart=always
+RestartSec=10
 ExecStart= %h/projects/CronAlarm/scripts/cron-api.py
 
 # Hardening

+ 1 - 0
service-units/mopidy.service

@@ -4,6 +4,7 @@ Description=Mopidy Server
 [Service]
 Type=simple
 Restart=always
+RestartSec=10
 ExecStart= %h/projects/CronAlarm/scripts/mopidy-init.sh
 
 # No hardening since Mopidy has to load plugins and such