~ubuntu-branches/ubuntu/natty/nfs-utils/natty-201101190615

« back to all changes in this revision

Viewing changes to debian/nfs-common.gssd.upstart

  • Committer: Steve Langasek
  • Date: 2011-01-16 04:28:46 UTC
  • Revision ID: steve.langasek@canonical.com-20110116042846-c1c1gtna2zd2rae3
debian/nfs-common.gssd.upstart, debian/nfs-common.gssd-mounting.upstart,
debian/rules: refactor gssd startup to also wait on local-filesystems.
(LP: #611397).  Note that this introduces a *new* race condition, since
only one job can call 'start portmap-wait' with the desired effect and
we now have two jobs that do so; so a further change to portmap-wait is
needed to let us run multiple instances of it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
description     "rpcsec_gss daemon"
7
7
author          "Steve Langasek <steve.langasek@canonical.com>"
8
8
 
9
 
start on (started portmap
10
 
          or mounting TYPE=nfs4 OPTIONS=*sec*krb5*)
 
9
start on (started portmap ON_BOOT=
 
10
          or local-filesystems and started portmap ON_BOOT=y)
11
11
stop on (stopping portmap or runlevel [06])
12
12
 
13
13
expect fork
65
65
        do_modprobe nfsd
66
66
        do_modprobe rpcsec_gss_krb5
67
67
 
 
68
        # This will block if portmap is mid-starting
 
69
        start portmap-wait
68
70
end script
69
71
 
70
72
exec rpc.gssd