21361: Remove StartLimitInterval from service units
[arvados.git] / lib / install / arvados.service
index cb411c63a5407aec56a95735343752ee1b560957..f536001f77ca9abdb3b1883ad8dd9051ab202961 100644 (file)
@@ -7,21 +7,17 @@ Description=Arvados server
 Documentation=https://doc.arvados.org/
 After=network.target
 AssertPathExists=/etc/arvados/config.yml
-
-# systemd>=230 (debian:9) obeys StartLimitIntervalSec in the [Unit] section
 StartLimitIntervalSec=0
 
 [Service]
 Type=notify
 EnvironmentFile=-/etc/arvados/environment
 ExecStart=/usr/bin/arvados-server boot
-# Set a reasonable default for the open file limit
-LimitNOFILE=65536
+ExecReload=/usr/bin/arvados-server config-check
+ExecReload=kill -HUP $MAINPID
 Restart=always
 RestartSec=1
-
-# systemd<=219 (centos:7, debian:8, ubuntu:trusty) obeys StartLimitInterval in the [Service] section
-StartLimitInterval=0
+LimitNOFILE=65536
 
 [Install]
 WantedBy=multi-user.target