2009-11-25 16:22:12 +01:00
|
|
|
#!/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
|
2011-01-25 13:13:59 +01:00
|
|
|
checkproc /usr/sbin/rpc.statd && exit 0
|
|
|
|
. /etc/rc.status
|
2010-04-19 07:02:51 +02:00
|
|
|
. /etc/sysconfig/nfs
|
2011-01-25 13:13:59 +01:00
|
|
|
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
|
|
|
|
if rc_status -v; then
|
|
|
|
# in case firewall needs to punch a hole for the
|
|
|
|
# statd port...
|
|
|
|
/etc/init.d/SuSEfirewall2_setup try-restart
|
|
|
|
fi
|
2009-11-25 16:22:12 +01:00
|
|
|
|