Installing Locast2Plex on Ubuntu 18.04 #244
Unanswered
rschricker
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Now that Locast is available in my local area, I built a Linux server to run as a Docker host. Alas, I couldn't get the stream from Plex to work but it worked after changing it to a service.
After installing FFMPG package, following the setup directions, I found the locast2plex.service file incorrectly configured for Ubuntu. A few changes and I got it working. (Ubuntu uses /bin for chown, mkdir, and kill) See below for my configuration.
[Unit]
Description=locast2plex background service
After=network.target
[Service]
WorkingDirectory=/opt/locast2plex
ExecStartPre=/usr/bin/touch /var/log/locast2plex.log
ExecStartPre=/bin/chown locast2plex:locast2plex /var/log/locast2plex.log
ExecStartPre=/bin/mkdir -p /var/run/locast2plex
ExecStartPre=/bin/chown -R locast2plex:locast2plex /var/run/locast2plex
ExecStart=/usr/sbin/daemonize -u locast2plex -c /opt/locast2plex -a -o /var/log/locast2plex.log -e /var/log/locast2plex.log -p /var/run/locast2plex/locast2plex.pid -l /var/run/locast2plex/locast2plex.lock /usr/bin/python3 main.py
ExecStop=/bin/kill $(echo /var/run/locast2plex.pid)
Type=forking
[Install]
WantedBy=multi-user.target
I extracted the locast2plex files in to the /opt/locast2plex directory I created and set appropriate permissions for the user 'locast2plex' as referenced.
Service restarted even after reboot.
Beta Was this translation helpful? Give feedback.
All reactions