[Bug 806761] Re: Feature Request: Upstart scripts for nslcd

Clint Byrum clint at fewbar.com
Tue Jul 31 17:05:07 UTC 2012


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
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/806761

Title:
  Feature Request: Upstart scripts for nslcd

Status in “nss-pam-ldapd” package in Ubuntu:
  In Progress

Bug description:
  This forum thread contains Upstart scripts that makes nslcd (and by
  extension the whole nss-pam-ldapd package) more resilient in the face
  of network connectivity outages:
  http://ubuntuforums.org/showthread.php?t=1335022

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



More information about the Ubuntu-sponsors mailing list