/etc/init/portmap-wait.conf is in rpcbind 0.2.0-7ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 portmap or stopped portmap
# 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 portmap and
# will make use of this service, so we need to instantiate.
instance $WAITER
script
status portmap | grep -q "start/running" && exit 0
start portmap || true
# Waiting forever is ok.. upstart will kill this job when
# the portmap we tried to start above either starts or stops
while sleep 3600; do :; done
end script
|