View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue Nov 17, 2009 12:50 pm 
Offline
Joined: Tue Nov 17, 2009 12:36 pm
Posts: 3
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 17, 2009 4:25 pm 
Offline
Joined: Sat Feb 03, 2007 12:52 am
Posts: 187
Location: Manitoba, Canada
At the start of /etc/sv/mythbackend/run you can add
Code:
sv start service_you_want || exit 1


Source


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 26, 2009 1:55 am 
Offline
Joined: Tue Nov 17, 2009 12:36 pm
Posts: 3
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?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 26, 2009 3:16 am 
Offline
Joined: Tue Nov 17, 2009 12:36 pm
Posts: 3
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. :?


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu