How to configure ErsatzTV as a systemd service
Introduction
ErsatzTV can be used for creating custom live streaming channels from your media files.
Installation
Create a folder named
ersatztvin the/optdirectory.
sudo mkdir /opt/ersatztvDownload and then extract the latest release from GitHub to the
/opt/ersatztvfolder.
sudo tar --strip-components=1 -xvf ErsatzTV-v0.8.6-beta-linux-x64.tar.gz -C /opt/ersatztvConfiguration
Create the
systemdservice unit in the/usr/lib/systemd/userdirectory.
sudo vi /usr/lib/systemd/user/ersatztv.serviceAdd the following lines:
[Unit]
Description=ErsatzTV channel service
After=network.target
[Service]
Type=simple
ExecStart=/opt/ersatztv/ErsatzTV
[Install]
WantedBy=default.targetReload the
systemctldaemon.
sudo systemctl daemon-reloadEnable the service.
systemctl --user enable ersatztv.serviceStart the service.
systemctl --user start ersatztv.serviceRun the
loginctlcommand with thelingeroption to ensure the service runs in the background even when you are logged out.
sudo loginctl enable-linger <username>Replace <username> with your actual username.
Summary
The Ersatztv service will now run in the background as a systemd service and be managed with systemctl commands.
Last updated