read .env automatically, support systemd

This commit is contained in:
Lou Knauer
2022-01-17 13:51:20 +01:00
parent ff24d946fd
commit f185d12078
6 changed files with 303 additions and 20 deletions
+16
View File
@@ -0,0 +1,16 @@
[Unit]
Description=ClusterCockpit Web Server (Go edition)
Documentation=https://github.com/ClusterCockpit/cc-backend
Wants=network-online.target
After=network-online.target
[Service]
WorkingDirectory=/var/clustercockpit
Type=notify
NotifyAccess=all
Restart=on-failure
TimeoutStopSec=100
ExecStart=/var/clustercockpit/cc-jobarchive --config ./config.json
[Install]
WantedBy=multi-user.target