View previous topic :: View next topic |
Author |
Message |
Nailgun n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Jul 2008 Posts: 2
|
Posted: Thu Jul 24, 2008 11:26 pm Post subject: some initscripts marginally depends on net (nss_ldap problem |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
aceFruchtsaft Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/75310361040f56cba0d7b7.gif)
Joined: 16 May 2004 Posts: 438 Location: Vienna, Austria
|
Posted: Fri Jul 25, 2008 6:44 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Nailgun n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Jul 2008 Posts: 2
|
Posted: Fri Jul 25, 2008 8:04 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|