~ubuntu-branches/ubuntu/precise/nis/precise-updates

« back to all changes in this revision

Viewing changes to debian/nis.ypbind.upstart

  • Committer: Steve Langasek
  • Date: 2012-03-10 02:21:47 UTC
  • Revision ID: steve.langasek@canonical.com-20120310022147-2m2h02b35jdb13cn
debian/nis.ypbind.upstart: if the job is being respawned, we should exit
the post-start script immediately since it's never going to succeed but
will take a long time to fail.  Thanks to Clint Byrum for the pointer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        for i in 1 2 3 4 5
64
64
        do
65
65
                echo -n "."
 
66
                if status ypbind | grep -q start/respawn; then
 
67
                        # something killed ypbind; short-circuit here instead
 
68
                        # of continuing to try to call ypwhich, since that
 
69
                        # can take more than a minute.
 
70
                        break
 
71
                fi
66
72
                if [ "$(ypwhich 2>/dev/null)" != "" ]; then
67
73
                        bound=1
68
74
                        break