Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
some initscripts marginally depends on net (nss_ldap problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Nailgun
n00b
n00b


Joined: 24 Jul 2008
Posts: 2

PostPosted: Thu Jul 24, 2008 11:26 pm    Post subject: some initscripts marginally depends on net (nss_ldap problem Reply with quote

I just have to setup nss to use ldap.
So getent passwd,group,shadow work. Its get information from ldap. But after reboot, my system locked on "starting dbus system bus" because it tries to fetch info from ldap, but network isn't yet up.
So i have to manually edit /etc/init.d/dbus: add string "use net" to depend().
How to avoid editing of initscript in this situation?
Back to top
View user's profile Send private message
aceFruchtsaft
Guru
Guru


Joined: 16 May 2004
Posts: 438
Location: Vienna, Austria

PostPosted: Fri Jul 25, 2008 6:44 am    Post subject: Reply with quote

I have the same problem and just like you, I always add "need net" to the DBUS init script, which is not satisfactory as you have to do this on every update.

In addition to that, in my /etc/ldap.conf I have:
Code:

# Search timelimit
timelimit 5

# Bind/connect timelimit
bind_timelimit 5

# Reconnect policy:
#  hard_open: reconnect to DSA with exponential backoff if
#             opening connection failed
#  hard_init: reconnect to DSA with exponential backoff if
#             initializing connection failed
#  hard:      alias for hard_open
#  soft:      return immediately on server failure
bind_policy soft


in case I forget, so the boot process does not hang forever on startup.
Back to top
View user's profile Send private message
Nailgun
n00b
n00b


Joined: 24 Jul 2008
Posts: 2

PostPosted: Fri Jul 25, 2008 8:04 am    Post subject: Reply with quote

Hmm.. Timeout is good addition, Thanks!

I have found a way to avoid manual editing of initscripts.
Just add RC_USE="net" or RC_NEED="net" to /etc/conf.d/dbus.
Another solution is to add net.eth0 (or another you need) to 'boot' runlevel. IMHO it's better, because almost all system depends on this network connection by using NSS. And then add RC_USE or RC_NEED if necessary...

PS. RC_AFTER does not work...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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