3 # rpcidmapd Start up and shut down RPC name to UID/GID mapper
5 # Authors: Chuck Lever <cel@netapp.com>
7 # chkconfig: 0356 19 69
8 # description: Starts user-level daemon for NFSv4 that maps user \
9 # names to UID and GID numbers.
11 # Source function library.
12 . /etc/init.d/functions
14 # Source networking configuration.
15 if [ ! -f /etc/sysconfig/network ]; then
18 . /etc/sysconfig/network
20 # Check that networking is up.
21 [ "${NETWORKING}" = "no" ] && exit 0
23 [ ! -x /usr/sbin/rpc.idmapd ] && exit 0
31 # make sure the rpc pipe fs is mounted already
32 RPCMTAB=`grep -v '^#' /proc/mounts | awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
33 if [ -n "$RPCMTAB" ]; then
35 echo -n $"Starting $prog: "
36 daemon /usr/sbin/rpc.idmapd ${OPTIONS} -p ${RPCMTAB}/nfs
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.idmapd
44 echo -n $"Shutting down $prog: "
48 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/rpc.idmapd
60 if [ -f /var/lock/subsys/rpc.idmapd ]; then
66 echo $"Usage: $0 {start|stop|restart|condrestart|status}"