#!/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 # /var/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