Hi Caleb, sorry for not responding sooner I've been quite busy.

You really just need to serialize your attempts to start nslcd. This is
actually doable pretty easily. Do this in your if-up.d script:

flock /etc/init/nslcd.conf start wait-for-state WAIT_FOR=nslcd
WAITER=$INTERFACE WAIT_STATE=started

This will ensure that only one of them is ever running at a time, so if
there's one about to fail, this will wait for that. Then it uses the
'wait-for-state' upstart job (only available in Ubuntu 11.10 and later)
that will just exit gracefully if it is already started, and if it has
not started yet, will try to start it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/806761

Title:
  Feature Request: Upstart scripts for nslcd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nss-pam-ldapd/+bug/806761/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to