NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: LDM Startup error, any suggestions? - SOLVED

Here's a script that will restart ldm and syslogd on a Soalaris machine.
If syslogd dies, no error messages will get written to ldmd.log, so you
need to restart ldm when restarting syslogd.

#!/bin/sh
y=`ps -ef| grep /usr/sbin/syslogd | grep -v grep | wc -l`
if [ $y = 0 ]
  then
  echo "/usr/sbin/syslogd not running, restarting syslogd and ldm..." 
  /usr/sbin/syslogd
  /bin/su - ldm -c "/usr/local/ldm/bin/ldmadmin stop"
  /bin/su - ldm -c "/usr/local/ldm/bin/ldmadmin newlog"
  sleep 30
  /bin/su - ldm -c "/usr/local/ldm/bin/ldmadmin start"
fi

Jeff
------------------------------------------------------------------------------
 Dr. Jeff Masters (jmasters@xxxxxxxxxxxxxxxx)                           (  )  
 Chief Meteorologist                              /\ Home of the       (    ) 
 The Weather Underground, Inc.               /\  /  \  /\       /\    (      )
 300 N Fifth Ave #240                       /  \/    \/  \ /\  /  \    ------
 Ann Arbor, MI 48104                 ______/              /  \/    \_   \\\\\
 734-994-8824 (voice)                           Weather Underground      \`\`\
 734-994-8919 (fax)                         http://www.wunderground.com
On Fri, 16 Mar 2001, Chris Novy wrote:

> Jeff Masters <jmasters@xxxxxxxxxxxxxxxx> wrote...
> 
> >Just restart it from the command line as root. You can put a check to see
> >if syslogd is running in cron and restart it, too, I have a script that
> >does it one one Solaris machine I have that has trouble with syslogd
> >crashes.
> 
> Jeff, perhaps you could send me that script.  I'm running Solaris.
> 
> Also thanks to Jessica and Fred for you help.
> 
> ..Chris..
> 
> 


  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the ldm-users archives: