LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File start-statd of Package nfs-utils (Project openSUSE:11.4)

#!/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.
checkproc /usr/sbin/rpc.statd && exit 0
. /etc/rc.status
. /etc/sysconfig/nfs
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
# 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