On Tue, Dec 16, 2014 at 12:21:06PM +0100, Petter Reinholdtsen wrote: > > Did you manage to figure out if nslcd could be told to wait until the > network is up? No. But there's already /etc/network/if-up.d/nslcd. This script does nothing, if nslcd died before. But may be it could check if the service should have been started and start it in this case. As far as I found out, systemd has a target called 'network-online'. Maybe this could be used within a nslcd systemd service file. But I don't know if this would really solve the problem and I don't know enough about systemd. > Did you try to restart it in the dhclient hook when the > network is up? Yes: nslcd-restart, more or less copy + sed from autofs-reload. This works like expected _now_. But it caused the system to hang at the stage 'raising network interface' in the case of failing NFS mount; seemed to be a dead end street for me. I had to use 'init=/bin/sh' on the kernel command line to be able to remove the hook script. Wolfgang
Attachment:
signature.asc
Description: Digital signature