18947: Refactor arv-git-httpd as an arvados-server subcommand.
[arvados.git] / cmd / arvados-server / arvados-git-httpd.service
similarity index 78%
rename from services/arv-git-httpd/arvados-git-httpd.service
rename to cmd/arvados-server/arvados-git-httpd.service
index 6c2b3bc58d8efc12e2f93787800332196478cb32..b45587ffc06bd683467b8a5f3de086a08e5598b9 100644 (file)
@@ -6,13 +6,17 @@
 Description=Arvados git 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-git-httpd
+# Set a reasonable default for the open file limit
+LimitNOFILE=65536
 Restart=always
 RestartSec=1