Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
writing an init script that should run right after another
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4924

PostPosted: Thu Feb 14, 2013 9:46 am    Post subject: writing an init script that should run right after another Reply with quote

Hello,

I need to write an init script that should run after a specific service, how can I force that?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Feb 14, 2013 11:16 am    Post subject: Reply with quote

In what? SystemV, openrc, systemd?
Back to top
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4924

PostPosted: Thu Feb 14, 2013 11:45 am    Post subject: Reply with quote

PaulBredbury wrote:
In what? SystemV, openrc, systemd?
openrc, right.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2826

PostPosted: Thu Feb 14, 2013 1:19 pm    Post subject: Reply with quote

keyword 'after' in /etc/init.d/*, just put 'after xxx' into depends function.
_________________
BitBucket -- better-initramfs
Back to top
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4924

PostPosted: Thu Feb 14, 2013 1:55 pm    Post subject: Reply with quote

SlashBeast wrote:
keyword 'after' in /etc/init.d/*, just put 'after xxx' into depends function.

does it have to be init format, my changes it to take some services down (unfortunately preventing them to boot in the first place doesn't seems to work) and prints might be garbeled
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum