From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96662767230042.tru64-unix-managers.marc@archive.invalid> From: Pinocci Paul Date: Fri, 18 Aug 2000 19:38:02 +0000 To: tru64-unix-managers Subject: Script not running from rc2.d upon reboot X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96662767230042 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------4F0F0D0F46554F18913D280C" This is a multi-part message in MIME format. --------------4F0F0D0F46554F18913D280C Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I'm new to Digital Unix, but have worked with Solaris and HP-UX, so excuse anything I say that might sound uninformed. We are running DU 4.0D. The startup script is /sbin/init.d/sysedge and the link to it is /sbin/rc2.d/S99sysedge. That's where the Vendor's instructions say to put the link. The /etc/inittab file seems to indicate that /sbin/rc2.d scripts should be started during a reboot, so the location SHOULD not be the problem. Any ways, the script is the startup script for the Empire SystemEdge SNMP agent. I can't find any evidence that it is even being attempted to be started when the machine is being rebooted. I can't find any messages (good or bad) in any of the log files that /etc/syslog.conf says there are (messages, kern.log, daemon.log, etc). Manually starting it (/sbin/rc2.d/S99sysedge start) works just fine. Is there a file that stores the results of a reboot, similar to the /etc/rc.log file in HP-UX? We rebooted it remotely from a telnet session using shutdown -r, so we don't know what might have scrolled on the console. But if the startup script is not even being attempted, would we see anything on the console? The next test reboot, I'll be sure to do it from the console. But althought it's the development server, the owners don't like having it rebooted very often, so I don't have the luxury of attempting too many test reboots. We have a call into the vendor, but it does not seem their help desk has much experience in Digital Unix. Any suggestions would be greatly appreciated. I have attached the sysedge script, along with the /etc/inittab and /etc/syslog.conf. The startup script IS doing a nohup, so no need to suggest that. Thanks in advance. -- Paul Pinocci pinocci_paul@bah.com --------------4F0F0D0F46554F18913D280C Content-Type: text/plain; charset=us-ascii; name="sysedge" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sysedge" #!/sbin/sh # # FILE: /sbin/init.d/sysedge # /sbin/rc2.d/S99sysedge # # PURPOSE: # Start the Concord SystemEDGE Management Agent # # Exit values: # 0 = success # 1 = failure ############################################################################### PATH=/sbin:/usr/sbin:/usr/bin export PATH # set the directory where the agent binary lives if its # different from the default SYSEDGEDIR=/usr/opt/EMPsysedge # set the agent configuration file CONFFILE=/etc/sysedge.cf # set the agent's monitor table non-volatile storage MONFILE=/etc/sysedge.mon # set the agent's license file LICFILE=/etc/sysedge.lic # which daemon to start DAEMON=sysedge # where to set the agent's startup messages SYSEDGELOG=/tmp/sysedge.log # set the port the agent should run on (default case) # if you want to run the Empire agent as a sub-agent # or in conjunction with others, use 1691 for the # port below; default is to use 161 PORT=1691 P=`/usr/sbin/netstat -an | grep 161` if [ ! -z "$P" ] ; then PORT=1691 fi case $1 in 'start') if [ -d $SYSEDGEDIR -a -f $SYSEDGEDIR/bin/$DAEMON ] ; then echo "Empire SystemEDGE Management Agent starting." eval 'nohup $SYSEDGEDIR/bin/$DAEMON -b -p $PORT -l $LICFILE -f $CONFFILE -m $MONFILE 1> $SYSEDGELOG 2>&1' sleep 5 # wait for agent to init and mask signals fi ;; 'dump') ;; 'stop') # # Determine PID of process(es) to stop # pid=`ps -e | awk '$NF~/sysedge/ {print $1}'` if [ "X$pid" != "X" ]; then if kill $pid; then echo "SystemEDGE stopped" else echo "Unable to stop SystemEDGE" fi fi ;; *) echo "usage: $0 {start|stop}" exit 1; ;; esac exit 0 --------------4F0F0D0F46554F18913D280C Content-Type: text/plain; charset=us-ascii; name="inittab" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="inittab" # # ***************************************************************** # * * # * Copyright (c) Digital Equipment Corporation, 1991, 1997 * # * * # * 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 # # @(#)$RCSfile: inittab,v $ $Revision: 4.1.19.3 $ (DEC) $Date: 1995/10/24 18:37:04 $ # # # (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC. # ALL RIGHTS RESERVED # # # OSF/1 Release 1.0 is:3:initdefault: ss:Ss:wait:/sbin/rc0 shutdown < /dev/console > /dev/console 2>&1 s0:0:wait:/sbin/rc0 off < /dev/console > /dev/console 2>&1 fs:23:wait:/sbin/bcheckrc < /dev/console > /dev/console 2>&1 kls:Ss:sysinit:/sbin/kloadsrv < /dev/console > /dev/console 2>&1 sysconfig:23:wait:/sbin/init.d/autosysconfig start < /dev/console > /dev/console 2>&1 update:23:wait:/sbin/update > /dev/console 2>&1 it:23:wait:/sbin/it < /dev/console > /dev/console 2>&1 kmk:3:wait:/sbin/kmknod > /dev/console 2>&1 s2:23:wait:/sbin/rc2 < /dev/console > /dev/console 2>&1 s3:3:wait:/sbin/rc3 < /dev/console > /dev/console 2>&1 cons:1234:respawn:/usr/sbin/getty console console vt100 mflmf:2:wait:sh /etc/mflmrcscript > /dev/null 2>&1 steam:3:respawn:/usr/opt/SWCC201/bin/steamd SF --------------4F0F0D0F46554F18913D280C Content-Type: text/plain; charset=us-ascii; name="syslog.conf" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="syslog.conf" # # ***************************************************************** # * * # * Copyright (c) Digital Equipment Corporation, 1991, 1996 * # * * # * 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 # # @(#)$RCSfile: syslog.conf,v $ $Revision: 4.1.4.2 $ (DEC) $Date: 1992/03/18 14:58:45 $ # # # syslogd config file # # facilities: kern user mail daemon auth syslog lpr binary # priorities: emerg alert crit err warning notice info debug kern.debug /var/adm/syslog.dated/kern.log user.debug /var/adm/syslog.dated/user.log mail.debug /var/adm/syslog.dated/mail.log daemon.debug /var/adm/syslog.dated/daemon.log auth.debug /var/adm/syslog.dated/auth.log syslog.debug /var/adm/syslog.dated/syslog.log lpr.debug /var/adm/syslog.dated/lpr.log msgbuf.err /var/adm/crash/msgbuf.savecore kern.debug /var/adm/messages kern.debug /dev/console *.emerg * --------------4F0F0D0F46554F18913D280C--