Choose style:

Author Topic: startup daemon (SOLVED)  (Read 19284 times)

0 Members and 1 Guest are viewing this topic.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: startup daemon
« Reply #30 on: July 24, 2014, 04:21:28 pm »
Jeez this is a badly written piece of software (at least as far as the init script goes).

Ignoring what the service status says, does plexconnect work when started that way ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kiwi_guy

  • Jr. Member
  • **
  • Posts: 29
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 3.8.0-35-generic
Re: startup daemon
« Reply #31 on: July 25, 2014, 03:59:13 am »
I'm glad I'm not the only one who thought it was badly written, I'm use to routing protocols and the idea sounded good to get movies from the server in one room to a atv3 but it has only really been on paper, in practice it works fine ( the streaming) but in getting it work I loose netffix and everything else as the DNS on a TV is pointed at my media server.

In saying all that yes it does work with the sudo, unsure why the status days it's not but my guess is because it's designed to work with Apple kit. I rEally do appreciate all this


Sent from my iPad using Tapatalk

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: startup daemon
« Reply #32 on: July 25, 2014, 09:16:30 am »
OK, after backing it up, try changing the contents of
/etc/init.d/plexconnect

to this one:
https://gist.github.com/natewalck/6128023

now see if it works at bootup.



I know little about Apple stuff (or Plex) .. generally I'd use minidlna for media streaming :)
« Last Edit: July 25, 2014, 09:19:49 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kiwi_guy

  • Jr. Member
  • **
  • Posts: 29
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 3.8.0-35-generic
Re: startup daemon
« Reply #33 on: July 25, 2014, 06:28:52 pm »
Cool cheers will give that a go a little later when my girl has a sleep. Might have to read up about minidlna. Plex is good for my samsung smart tv in that it has an app so makes things easy for the wife but this has just proved a nightmare, I started down this trail after a colleague started it but he has it working on osx. Have also been looking at xbmc and that seems good I. That can throw on a rasp pi and plug into kids tv and then stream. I should have done more homework and asked what is good to use on the platform I have instead of trying to adapt but hey it has refreshed a lot of stuff I haven't looked in a while, and reminded myself how easy stupid mistakes are


Sent from my iPad using Tapatalk

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: startup daemon
« Reply #34 on: July 25, 2014, 06:48:57 pm »
MiniDLNA is now called ReadyMedia, but it's still in the Ubuntu/Peppermint repo's as minidlna

it's a super lightweight DLNA server that works with any hardware that supports DNLA which is just about all smart TV's, Xbox 360's PS3's PC's, Android devices, in fact just about everything these days .. no flashy GUI, just quietly serves anything you place in its monitored directories.

Did I mention it's resource footprint is nearly non existent

It doesn't transcode on the fly, but I gather neither does Plex (?) .. so added Video/Music/Pics have to be in a format the device can handle in the first place.

I also seem to vaguely remember that minidlna was written (at least at the beginning) by an ex samsung TV software engineer (now apparently taken over by netgear, and renamed readymedia) .. don't quote me on that though.
« Last Edit: July 26, 2014, 11:48:06 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kiwi_guy

  • Jr. Member
  • **
  • Posts: 29
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 3.8.0-35-generic
Re: startup daemon
« Reply #35 on: July 25, 2014, 08:22:10 pm »
Still no joy

Should I have ot create the sym link again like i did for the now .bak file?

Code: [Select]
plex@plex /etc/init.d $ ls -la

---line omitted--
wxr-xr-x   1 root root  1292 Mar 13 14:33 ondemand
-rw-rw-r--   1 plex plex  2598 Jul 26 12:14 plexconnect
-rw-rw-r--   1 plex plex  2591 Jul 26 12:11 plexconnect~
lrwxrwxrwx   1 root root    57 Jul 23 14:19 plexconnect.bak -> /usr/local/lib/PlexConnect-master/PlexConnect_daemon.bash
lrwxrwxrwx   1 root root    21 Jun 17 11:13 plexmediaserver -> /lib/init/upstart-job
-rwxr-xr-x   1 root root   561 Jan 23  2013 pppd-dns

Offline kiwi_guy

  • Jr. Member
  • **
  • Posts: 29
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 3.8.0-35-generic
Re: startup daemon
« Reply #36 on: July 25, 2014, 09:12:48 pm »
This seems to be creating a lot of work and that time could be spent looking at more pressing issues. I can live with having to manually start the daemon until such time as I replace what I am doing with something else. I just don't want you wasting too much more of your time on this as other members have issues which are more pressing than this.

I am happy to leave or to persevere through with you .

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: startup daemon
« Reply #37 on: July 26, 2014, 11:16:04 am »
Still no joy

Should I have ot create the sym link again like i did for the now .bak file?

Code: [Select]
plex@plex /etc/init.d $ ls -la

---line omitted--
wxr-xr-x   1 root root  1292 Mar 13 14:33 ondemand
-rw-rw-r--   1 plex plex  2598 Jul 26 12:14 plexconnect
-rw-rw-r--   1 plex plex  2591 Jul 26 12:11 plexconnect~
lrwxrwxrwx   1 root root    57 Jul 23 14:19 plexconnect.bak -> /usr/local/lib/PlexConnect-master/PlexConnect_daemon.bash
lrwxrwxrwx   1 root root    21 Jun 17 11:13 plexmediaserver -> /lib/init/upstart-job
-rwxr-xr-x   1 root root   561 Jan 23  2013 pppd-dns

I shouldn't have thought so .. in fact I can't see why that symlink would be there in the first place .. the file in /etc/init.d should the the startup script and added to the relevant runlevels

Try running:
Code: [Select]
sudo update-rc.d plexconnect remove
then
Code: [Select]
sudo update-rc.d plexconnect defaults
now does it autostart at boot ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kiwi_guy

  • Jr. Member
  • **
  • Posts: 29
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 3.8.0-35-generic
Re: startup daemon
« Reply #38 on: July 26, 2014, 04:18:14 pm »
Still no joy and its also stopped writing anything to the log file on start up.... :(

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: startup daemon
« Reply #39 on: July 26, 2014, 04:32:57 pm »
OK, run:
Code: [Select]
sudo update-rc.d plexconnect remove
then change your
/etc/init.d/plexconnect
file back to the way it was (symlink)
then run:
Code: [Select]
sudo update-rc.d plexconnect defaults
again.

And after a reboot, tell me if the log file is being written to again.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kiwi_guy

  • Jr. Member
  • **
  • Posts: 29
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 3.8.0-35-generic
Re: startup daemon
« Reply #40 on: July 26, 2014, 05:39:44 pm »
Log file being written to again

Code: [Select]
09:28:50 PlexConnect: started: 09:28:50
09:28:50 PlexConnect: Version: 0.3.1+
09:28:50 PlexConnect: Python: 2.7.6 (default, Mar 22 2014, 22:59:38)
[GCC 4.8.2]
09:28:50 PlexConnect: Host OS: linux2

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: startup daemon
« Reply #41 on: July 26, 2014, 05:53:10 pm »
If you run:
Code: [Select]
/usr/local/lib/PlexConnect/PlexConnect-master/PlexConnect.py
does plexconnect work .. or does that require you to start it with "sudo"
?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kiwi_guy

  • Jr. Member
  • **
  • Posts: 29
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 3.8.0-35-generic
Re: startup daemon
« Reply #42 on: July 28, 2014, 02:10:49 am »
I have to have sudo at the start

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: startup daemon
« Reply #43 on: July 28, 2014, 08:00:40 am »
What happens if you add
/usr/local/lib/PlexConnect/PlexConnect-master/PlexConnect.py
OR
/usr/local/lib/PlexConnect-master/PlexConnect_daemon.bash start
to
/etc/rc.local
just above the
exit 0
line
then reboot to test ?

Adjust the above paths if they are not correct
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kiwi_guy

  • Jr. Member
  • **
  • Posts: 29
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 3.8.0-35-generic
Re: startup daemon
« Reply #44 on: July 29, 2014, 02:41:10 am »
No change

I am trying to track down a post about someone who had similar issue and had to add a wait to one of his files to allow the network to setup first and see if that makes any difference. Stab in the dark but worth a go I figure.