X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Fnfs-common.init;h=f3ebbd101768ace8e4a32b0250b0610da818aa5f;hp=a93097661f64d772b8b38052d1040cdd5d03a67f;hb=ad7dd95f8e6b93b2db436e3131ca42e4a623d306;hpb=22e8fbbc869085df2a050159bf559f8e97b670b1 diff --git a/debian/nfs-common.init b/debian/nfs-common.init index a930976..f3ebbd1 100644 --- a/debian/nfs-common.init +++ b/debian/nfs-common.init @@ -3,6 +3,7 @@ ### BEGIN INIT INFO # Provides: nfs-common # Required-Start: $time +# Required-Stop: $time # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: NFS support files common to client and server @@ -178,6 +179,14 @@ case "$1" in then do_modprobe rpcsec_gss_krb5 log_progress_msg "gssd" + + # we need this available; better to fail now than + # mysteriously on the first mount + if ! grep -q -E '^nfs[ ]' /etc/services; then + log_action_end_msg 1 "broken /etc/services, please see /usr/share/doc/nfs-common/README.Debian.nfsv4" + exit 1 + fi + start-stop-daemon --start --oknodo --quiet \ --exec /usr/sbin/rpc.gssd -- $RPCGSSDOPTS if [ $? != 0 ]; then