mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-24 21:26:08 +02:00
read .env automatically, support systemd
This commit is contained in:
16
utils/systemd/clustercockpit.service
Normal file
16
utils/systemd/clustercockpit.service
Normal 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
|
Reference in New Issue
Block a user