nfs-utils/start-statd
Neil Brown 5c03c3baa4 - New upstream release 1.2.7. Adds FedFD support
to mounted and replaces nfsdcld with
  nfsdcltrack.  This is used to manage client state
  on NFSv4 servers.
  Incorporates more local patches.

- Replace "/var/run" with "/run" in various scripts.

- nfsserver.init: Generate message that "bind=" is deprecated
  if it is used.

OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=81
2012-11-28 00:31:37 +00:00

22 lines
688 B
Bash

#!/bin/sh -p
# nfsmount calls this script when mounting a filesystem with locking
# enabled, but when statd does not seem to be running (based on
# /run/rpc.statd.pid).
# It should run run statd with whatever flags are apropriate for this
# site.
PATH=/sbin:/usr/sbin:/bin:/usr/bin
checkproc /usr/sbin/rpc.statd && exit 0
. /etc/rc.status
. /etc/sysconfig/nfs
rc_reset
echo -n "Starting rpc.statd ..."
if ! rpcinfo -p localhost >/dev/null 2>/dev/null; then
echo -n " ${extd}portmapper not running${norm}"
rc_failed 1
rc_status -v
rc_exit
fi
# TODO: write init script and call that one via /sbin/service instead
start_daemon /usr/sbin/rpc.statd --no-notify $STATD_OPTIONS
rc_status -v