Hello All,
I have a stupid problem that I just can't seem to solve.
I want to start rpc.rstatd running at boot time but have completely failed.
I have 
1)created as script /sbin/init.d/rstatd by copying rwhod and
edititing it as shown below.
2)created a link /usr/sbin/rc3.d/S88rstatd  pointing to ../init.d/rstatd
3) used rcmgr to add the following lines to rc.config
RSTATD="yes"
export RSTATD
Running S88rstatd start|stop interactively correctly starts/stops rpc.rstatd
At system boot I correctly get the message "rstatd daemon started" on
the console but when I log in there is no sign of rpc.rstatd.
I just cannot see what I am doing wrong.
Any help or suggestion on how to get rstatd started at boot time would
be very welcome.
Many Thanks
Tim.
Tim Janes                   | e-mail : janes_at_signal.dra.hmg.gb
Defence Research Agency     |    tel : +44 1684 894100
Malvern  Worcs              |    fax : +44 1684 895103
Gt Britain                  |   #include <std/disclaim.h>
#!/bin/sh
# 
# *****************************************************************
# *                                                               *
# *    Copyright (c) Digital Equipment Corporation, 1991, 1995    *
# *                                                               *
# *   All Rights Reserved.  Unpublished rights  reserved  under   *
# *   the copyright laws of the United States.                    *
# *                                                               *
# *   The software contained on this media  is  proprietary  to   *
# *   and  embodies  the  confidential  technology  of  Digital   *
# *   Equipment Corporation.  Possession, use,  duplication  or   *
# *   dissemination of the software and media is authorized only  *
# *   pursuant to a valid written license from Digital Equipment  *
# *   Corporation.                                                *
# *                                                               *
# *   RESTRICTED RIGHTS LEGEND   Use, duplication, or disclosure  *
# *   by the U.S. Government is subject to restrictions  as  set  *
# *   forth in Subparagraph (c)(1)(ii)  of  DFARS  252.227-7013,  *
# *   or  in  FAR 52.227-19, as applicable.                       *
# *                                                               *
# *****************************************************************
#
# HISTORY
# 
# _at_(#)$RCSfile: rwho,v $ $Revision: 1.1.8.2 $ (DEC) $Date: 1994/08/29 19:19:35 $
# 
RCMGR=/usr/sbin/rcmgr
# Get actual configuration 
NUM_NETCONFIG=`$RCMGR get NUM_NETCONFIG`
RWHOD=`$RCMGR get RSTATD`
# if network not configured, just exit
if [ "$NUM_NETCONFIG" = '' -o "$NUM_NETCONFIG" = 0 ]; then
        exit 1
else
        Pid=`/sbin/init.d/bin/getpid /usr/sbin/rpc.rstatd -uroot`
fi
#
# start or stop rstatd daemon
#
case $1 in
'start')
        if [ "$RWHOD" = 'yes' ]; then
                if [ -f /usr/sbin/rpc.rstatd ]; then
                        if [ "X$Pid" = "X" ]; then
                                if /usr/sbin/rpc.rstatd; then
                                        echo "rstatd daemon started"
                                else
                                        echo "$0: cannot start rstatd daemon"
                                        exit 1
                                fi
                        fi
                else
                        echo "$0: /usr/sbin/rpc.rstatd does not exist"
                        exit 1
                fi
        fi
        ;;
'stop')
        if [ -f /usr/sbin/rpc.rstatd ]; then
                if [ "X$Pid" != "X" ]; then
                        /bin/kill $Pid
                fi
        fi
        ;;
*)
        echo "usage: $0 {start|stop}"
        exit 1
        ;;
esac
exit 0
Received on Tue Feb 06 1996 - 10:59:28 NZDT