mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
systemd service
This commit is contained in:
parent
ba3c49a816
commit
5925957b96
14
kvmd/kvmd.service
Normal file
14
kvmd/kvmd.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=The main process of Pi-KVM
|
||||
After=network.target network-online.target nss-lookup.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
|
||||
ExecStart=python -m kvmd --config /etc/kvmd.yaml
|
||||
ExecStopPost=python -m kvmd.extras.cleanup --config /etc/kvmd.yaml
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
x
Reference in New Issue
Block a user