Jump to content

Startup sequence in Ubuntu


Recommended Posts

Posted

Hi, just installed on a fresh install of Ubuntu LTS 14.04 over the weekend. Thanks for the Linux support, I loathed the idea of installing a Windows VM just to run one server application.

 

One problem I've noticed however: After rebooting, MB server comes up with no media. Stop and restart mediabrowser and everything is there. I mount all of my media from my NAS via NFS and it looks to me like mediabrowser is starting before the NFS directories are mounted.

 

Unfortunately, I'm more of a RHEL guy so I'm not sure how to fix this. It looks like Ubuntu (or maybe Debian in general) has moved a lot of its startup operations away from Sys V Init and over to upstart. And NFS mounts are one of the things that have moved over. However mediabrowser is still using the System V Init style init.d script to start and stop things. I'm not clear on any way to ensure that an Upstart started service is completed before a SysV started service attempts to move forward.

 

I could modify the mediabrowser startup script to make sure my mount point is mounted prior to continuing but I was hoping for a more general solution. Has anybody else run into this?

 

Should the mediabrowser startup be moved to Upstart in order to exert some control between Upstart events?

 

hurricanehrndz
Posted

Hi, just installed on a fresh install of Ubuntu LTS 14.04 over the weekend. Thanks for the Linux support, I loathed the idea of installing a Windows VM just to run one server application.

 

One problem I've noticed however: After rebooting, MB server comes up with no media. Stop and restart mediabrowser and everything is there. I mount all of my media from my NAS via NFS and it looks to me like mediabrowser is starting before the NFS directories are mounted.

 

Unfortunately, I'm more of a RHEL guy so I'm not sure how to fix this. It looks like Ubuntu (or maybe Debian in general) has moved a lot of its startup operations away from Sys V Init and over to upstart. And NFS mounts are one of the things that have moved over. However mediabrowser is still using the System V Init style init.d script to start and stop things. I'm not clear on any way to ensure that an Upstart started service is completed before a SysV started service attempts to move forward.

 

I could modify the mediabrowser startup script to make sure my mount point is mounted prior to continuing but I was hoping for a more general solution. Has anybody else run into this?

 

Should the mediabrowser startup be moved to Upstart in order to exert some control between Upstart events?

Original start script was in upstart, but it got move to init.d in order to support as many debian distros as possible. I can try and find the old upstart script if you like and try and provide it.

  • 2 weeks later...
Posted

I have EXACTLY the same issue on Openmediavault running debian wheezy.

 

Mounting my ZFS volume takes longer than MBS to get bored and declare my media "offline" - so empty library.

 

Described here: http://forums.openmediavault.org/index.php/Thread/6033-openmediavault-mediabrowser-plugin/?pageNo=10   (10th or 11th post and onward to last page)

 

Any ideas to postpone the start or restart MBS service - maybe at the end of rc.local with a sleep 20 !?

  • 2 months later...
Posted

Original start script was in upstart, but it got move to init.d in order to support as many debian distros as possible. I can try and find the old upstart script if you like and try and provide it.

 

Can i get this Hurricane? Does it have a process that restarts the service if it crashes? my server crashes every few days and from my very limited knowledge, upstart has the facility to check and restart if the process isnt running.

  • 3 months later...
Saner2oo2
Posted

can i bump this, does anyone have a copy of an upstart script.

 

i am having issues and want the respawn feature

hurricanehrndz
Posted (edited)

If you need the respawn feature at all there might be something wrong with your installation. I would suggest having your issues addressed first.

PS if I can get some spare time soon, I will write a new script.

Edited by hurricanehernandez
Saner2oo2
Posted

yeah there must be something wrong, i am having serious stability issues.

 

will start a new thread.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...