File: rpcbind.portmap-wait.upstart

package info (click to toggle)
rpcbind 0.2.3-0.6
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 992 kB
  • ctags: 667
  • sloc: ansic: 5,572; sh: 1,372; makefile: 121
file content (28 lines) | stat: -rw-r--r-- 815 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# portmap-wait 
# Note that this is called portmap-wait rather than rpcbind-wait because
# other packages rely on the portmap-wait name.

description "Start this job to wait until rpcbind is started or fails to start"
author "Clint Byrum <clint.byrum@canonical.com>"

stop on started rpcbind or stopped rpcbind

# Needed to make starting the job successful despite being killed
normal exit 2
task

# We know that we have more than one job that needs to wait for rpcbind and
# will make use of this service, so we need to instantiate.
instance $WAITER

script

  status rpcbind | grep -q "start/running" && exit 0

  start rpcbind ON_BOOT=y || true

  # Waiting forever is ok.. upstart will kill this job when
  # the rpcbind we tried to start above either starts or stops
  while sleep 3600; do :; done

end script