mirror of
https://github.com/vexorian/dizquetv.git
synced 2025-12-10 00:28:08 -06:00
0
Configure dizqueTV service in Linux (SystemD)
Sean Harlow edited this page 2024-02-29 12:54:36 -05:00
This configures dizqueTV as a service that starts automatically on boot and restarts when it crashes.
Create the file /etc/systemd/system/dizquetv.service
[Unit]
Description=Dizquetv
[Service]
Type=simple
RemainAfterExit=false
WorkingDirectory=/path/to/dizquetv
ExecStart=/path/to/dizquetv/dizquetv-linux-x64 --port 8000 --db ./dizquetv
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target
Reload systemctl daemon
sudo systemctl daemon-reload
Enable dizquetv
sudo systemctl enable dizquetv
Start service
sudo service dizquetv start
Stop service
sudo service dizquetv stop
Read logs
journalctl -fu dizquetv