LinHES Forums
http://forums.linhes.org/

LinHES service startup order
http://forums.linhes.org/viewtopic.php?f=21&t=20532
Page 1 of 1

Author:  masehare [ Tue Nov 17, 2009 12:50 pm ]
Post subject:  LinHES service startup order

Hi, is there any way to control the startup order of services in LinHES? I managed to add a service to startup with the add_service.sh script, but would like to start some specific services before mythbackend starts.

Thanks

Author:  goofee [ Tue Nov 17, 2009 4:25 pm ]
Post subject: 

At the start of /etc/sv/mythbackend/run you can add
Code:
sv start service_you_want || exit 1


Source

Author:  masehare [ Thu Nov 26, 2009 1:55 am ]
Post subject: 

Thank you.

Because I'm new to Linux, I sort of got my wording wrong. I've actually got a script that must install a module and start a daemon before mythbackend starts. I tried adding the startup script to the mythbackend 'run' script in /etc/sv/mythbackend, but then the daemon also runs under supervision, which is not ideal as it needs a restart now and then (which re-installs the module).

Any other idea where this can be started perhaps?

Author:  masehare [ Thu Nov 26, 2009 3:16 am ]
Post subject: 

And I can't figure out from the runit documentation how it performs a service stop. Does it just kill the daemon it monitors?

In my previous post I referred to a script that installs a module and then starts a daemon which depends on the module. So is there some way to tell runit to execute a shutdown script for a daemon when you issue a 'sv stop [service]'? In my case the shutdown script will kill a daemon and rmmod a module. :?

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/