This should work for all of you running Ubuntu 15+ (or running a system with systemd like raspberry Jessie):
@izznogooood said:
This should work for all of you running Ubuntu 15+ (or running a system with systemd like raspberry Jessie):
http://forums.plex.tv/discussion/213637/howto-install-plexconnect-as-a-service-in-ubuntu-15x-or-others-with-systemd#latest
Excellent! Followed your instructions and PlexConnect now starts when my Pi boots. Been looking for a way to do this for weeks now.
Glad to hear it!
i’ve follow the guide, with the script and the command, but the plexconnect service wan’t start 
when i write : sudo service plexconnect status
the result is this:
` plexconnect.service - LSB: This is the Plex Connect daemon
Loaded: loaded (/etc/init.d/plexconnect; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since lun 2016-10-10 09:33:58 CEST; 19min
Docs: man:systemd-sysv-generator(8)
Process: 640 ExecStart=/etc/init.d/plexconnect start (code=exited, status=203/
ott 10 09:33:58 mediaserver systemd[1]: Starting LSB: This is the Plex Connect d
ott 10 09:33:58 mediaserver systemd[1]: plexconnect.service: Control process exi
ott 10 09:33:58 mediaserver systemd[1]: Failed to start LSB: This is the Plex Co
ott 10 09:33:58 mediaserver systemd[1]: plexconnect.service: Unit entered failed
ott 10 09:33:58 mediaserver systemd[1]: plexconnect.service: Failed with result `
Hi
There should be no output like
Loaded: loaded (/etc/init.d/plexconnect; bad; vendor preset: enabled)
Becouse I am not using init.d but systemd.
If you read my whole guide you will se there is a section about removing your old init.d script:
Removing the old sysvinit script (/etc/init.d/plexconnect)
Make sure you have PlexConnect installed in the right PATH (/opt/PlexConnect) or change the path to what is right for you.
If you dont understand what I mean i suggest you remove plexconnect completely and follow my guide to the letter and do a reinstall.
Remember the part where you remove the old init.d script!
PS:
The correct way to use services with systemd is:
sudo systemctl start/stop/status/enable/disable plexconnect.service
Even though
sudo service plexconnect xxx
will work in ubuntu.
This is what it should look like:
anders@lenox:~$ sudo systemctl status plexconnect.service
[sudo] password for anders:
● plexconnect.service - Plexconnect
Loaded: loaded (/etc/systemd/system/plexconnect.service; enabled; vendor preset: enabled)
Active: active (running) since sø. 2016-10-09 22:04:34 CEST; 13h ago
Main PID: 4235 (python)
Tasks: 5
Memory: 23.8M
CPU: 8.139s
CGroup: /system.slice/plexconnect.service
├─4235 /usr/bin/python /opt/PlexConnect/PlexConnect.py
├─4243 /usr/bin/python /opt/PlexConnect/PlexConnect.py
├─4247 /usr/bin/python /opt/PlexConnect/PlexConnect.py
├─4251 /usr/bin/python /opt/PlexConnect/PlexConnect.py
└─4264 /usr/bin/python /opt/PlexConnect/PlexConnect.py
okt. 10 10:36:32 lenox python[4235]: 01:13:46 WebServer: serving .xml: /library/sections/1
okt. 10 10:36:32 lenox python[4235]: 01:13:47 WebServer: serving /js/utils.js
okt. 10 10:36:32 lenox python[4235]: 01:13:59 WebServer: serving .xml: /library/metadata/1281
okt. 10 10:36:32 lenox python[4235]: 01:14:04 WebServer: serving .xml: /library/sections/1
okt. 10 10:36:32 lenox python[4235]: 01:14:05 WebServer: serving /js/utils.js
okt. 10 10:36:32 lenox python[4235]: 01:14:05 WebServer: serving /js/updateXML.js
okt. 10 10:36:32 lenox python[4235]: 01:14:05 WebServer: serving .xml: /library/sections/1
okt. 10 10:36:32 lenox python[4235]: 01:14:06 WebServer: serving /js/utils.js
okt. 10 10:36:32 lenox python[4235]: 10:36:31 WebServer: serving .xml: /library/sections/1
okt. 10 10:36:32 lenox python[4235]: 10:36:32 WebServer: serving /js/utils.js
anders@lenox:~$