Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How 2 change openrc process order?[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1100

PostPosted: Mon Aug 31, 2015 4:21 am    Post subject: How 2 change openrc process order?[SOLVED] Reply with quote

I have a nfs shared /usr/portage when running as xen dom0.
I recently have squashmounted /usr/portage, which works fine with ordinary kernel.
Code:
rc-update                                 
                        nfs |              default                                 
      postgresql-9.4 |              default                                 
                   procfs |         boot                                         
          qemu-binfmt |              default                                 
                       root |         boot                                         
            savecache |                                shutdown               
        squashmount |              default
The trouble is that nfs priority over squashmount.
Any idea how to lower nfs priority so that it is started after squashmount?

Thks 4 ur attention.


Last edited by CaptainBlood on Mon Aug 31, 2015 6:03 pm; edited 2 times in total
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2574

PostPosted: Mon Aug 31, 2015 4:34 am    Post subject: Reply with quote

1) change run levels of the services. (permanent, no maintenance)
2) Add a line to the dependency line of the start up script in /etc/init.d (may not be permanent, more elegant.)

Option 1) is the easiest to implement, but may fail another service requires it. In that case, it will start it early again. Option 2) is less likely to cause an issue with other services but there is a risk of an update undoing your changes.

There is a really old thread dealing with this.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Mon Aug 31, 2015 8:38 am    Post subject: Reply with quote

The Doctor wrote:
2) Add a line to the dependency line of the start up script in /etc/init.d (may not be permanent, more elegant.)

3) Create a new init script that depend on the two other (no etc-update could alter it, finest in elegance) ;)
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Mon Aug 31, 2015 5:31 pm    Post subject: Reply with quote

krinn wrote:
The Doctor wrote:
CaptainBlood wrote:
Any idea how to lower nfs priority so that it is started after squashmount?

2) Add a line to the dependency line of the start up script in /etc/init.d (may not be permanent, more elegant.)

3) Create a new init script that depend on the two other (no etc-update could alter it, finest in elegance) ;)

4) use the facilities provided by openrc ... for elegant-elegance ;)

/etc/rc.conf
Code:
rc_squashmount_before="nfs"

HTH & best ... khay
Back to top
View user's profile Send private message
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1100

PostPosted: Mon Aug 31, 2015 6:02 pm    Post subject: Reply with quote

Thks 2 all,

I think /etc/rc.conf will be my best choice.

Anyhow, nfs on squashmount isn't working yet.

Thks 4 ur attention, interest & support
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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