18794: Don't restart if new config is unreadable or unchanged.
[arvados.git] / services / crunch-dispatch-slurm / crunch-dispatch-slurm.service
index 1509d7ad8b33fd24f56e80f64ad85d929b940bdb..86830f3a7f67364d0a3dd783e598458984bff3a0 100644 (file)
@@ -6,10 +6,6 @@
 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==229 (ubuntu:xenial) obeys StartLimitInterval in the [Unit] section
-StartLimitInterval=0
 
 # systemd>=230 (debian:9) obeys StartLimitIntervalSec in the [Unit] section
 StartLimitIntervalSec=0
@@ -17,6 +13,8 @@ StartLimitIntervalSec=0
 [Service]
 Type=notify
 ExecStart=/usr/bin/crunch-dispatch-slurm
+# Set a reasonable default for the open file limit
+LimitNOFILE=65536
 Restart=always
 RestartSec=1
 LimitNOFILE=1000000