11221: Always restart systemd services, even after a few startup failures.
[arvados.git] / services / crunch-dispatch-slurm / crunch-dispatch-slurm.service
index 5b37e3c0a34f9d4a2678e629ce5ddd8facdc5737..80e4fb977e8bd7f7d53a1f46784214d6737c135c 100644 (file)
@@ -2,11 +2,17 @@
 Description=Arvados Crunch Dispatcher for SLURM
 Documentation=https://doc.arvados.org/
 After=network.target
+AssertPathExists=/etc/arvados/crunch-dispatch-slurm/crunch-dispatch-slurm.yml
+# systemd<230
+StartLimitInterval=0
+# systemd>=230
+StartLimitIntervalSec=0
 
 [Service]
 Type=notify
 ExecStart=/usr/bin/crunch-dispatch-slurm
 Restart=always
+RestartSec=1
 
 [Install]
 WantedBy=multi-user.target