/etc/init/statd-mounting.conf is in nfs-common 1:1.2.8-9ubuntu12.
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 29 | # statd-mounting
description "Block the mounting event for NFS filesytems until statd is running"
author "Clint Byrum <clint.byrum@canonical.com>"
instance $MOUNTPOINT
start on mounting TYPE=nfs
stop on started statd or stopped statd
task
# This is required so that the task is still considered
# successful when it gets killed
normal exit 2
script
. /etc/default/nfs-common
status statd | grep -q "start/running" && exit 0
# If its already starting we'll get killed by the impending 'stop on
# started statd'
# If it wasn't already starting, we'll either get killed by the stop
# on started or stopped.
# So, its safe to sleep forever here and rely on upstart to kill us,
while sleep 3600; do :; done
end script
|