Ubuntu 15.04 uses a thing called SystemD to start services on boot, the older versions use Upstart. You can get the system to switch over but by default, SystemD is the method to get things to launch on boot for 15.04.
It’s not the plexconnect.conf file, I couldn’t get that to work at all. I read up on SystemD and how things moved over from Upstart (this web page: wiki.ubuntu.com/SystemdForUpstartUsers ) and then spoke to a friend who is a Linux developer who pointed me in the right direction.
Basically I created the above content in a file /etc/systemd/system/plexconnect.service (you’ll need to update the files/folders in the file to where you have PlexConnect installed), I used sudo to launch vi to create the file, didn’t bother with permissions as they seemed to be fine on creation.
then ran:
systemctl enable plexconnect.service
This enables it as a system service and tells it to start on next boot.
I then ran:
systemctl start plexconnect.service
This starts PlexConnect as a service. Note, I had previously killed off the PlexConnect processess that were running (I ran ps -ef | grep Plex to find out what they were and then sudo kill xxx where xxx is the process numbers - there were 4 of them).
You can also check the status of the service (whether its failed etc) using:
systemctl status plexconnect.service
It would be great if the devs of PlexConnect were able to write some scripts to do this automatically based on system type. PMS sort of does this when you dpkg install it, so maybe the scripts could be borrowed from there.
Heres my plexconnect.service file, note I had to rename it to plexconnect.service.txt to get the forum to allow the update so youll need to rename it back.