Closed DevMan01 closed 1 year ago
I use system.d inside the docker container with combination of s6 to run the script as service, I'd probably recommend creating a system.d service in a similar fashion. The s6 part isn't required but is just how the parent linuxserver container is setup but it should translate to Ubuntu fine
Steps to solve for the next chap:
/etc/systemd/system/
sudo vim PlexAutoSkip.service
# Plex Auto Skip Service
[Unit]
Description=Plex Autoskip
[Service]
#User=YOUR_USER
#Group=YOUR_USER_GROUP
Type=simple
Environment=LC_ALL=C.UTF-8
Environment=LANG=C.UTF-8
WorkingDirectory=/PATH/TO/MAIN.PY
ExecStart=/usr/bin/python3 /PATH/TO/MAIN/main.py
Restart=always
RestartSec=10
[Install]
WantedBy=default.target
sudo systemctl --system daemon-reload
sudo systemctl enable PlexAutoSkip.service
sudo systemctl start PlexAutoSkip.service
sudo journalctl -f -u PlexAutoSkip.service
Nice write up, I copied this over to the wiki for future users, thanks for sharing
https://github.com/mdhiggins/PlexAutoSkip/wiki/Run-as-Service-Linux
Hey there, looking for the best recommendations / instructions for installing this program as a service at boot up?
Build:
OS:
PMS:
Python: