pyCEC
pyCEC copied to clipboard
How to run as a service
Hi,
can anybody please explain me how I can run the server as a service on raspbian buster, so I can close Putty and still use it? :)
Thanks!
Put this into /etc/systemd/system/cec.service
:
[Unit]
Description=PyCEC
Documentation=
After=network.target
[Service]
Type=simple
User=pi
ExecStart=/usr/bin/python3 -m pycec
Restart=always
[Install]
WantedBy=multi-user.target
sudo systemctl enable cec && sudo systemctl start cec