Quellcode durchsuchen

Delayed service restart to avoid hammering the logs with errors

Lukas Angerer vor 8 Monaten
Ursprung
Commit
d4aa60a4f5

+ 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