systemd service

This commit is contained in:
Devaev Maxim 2018-06-28 07:07:19 +03:00
parent ba3c49a816
commit 5925957b96

14
kvmd/kvmd.service Normal file
View 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