LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Options: Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Parts/Attachments: text/plain (31 lines)
Print Reply
Sender:
LISTSERV give-and-take forum <[log in to unmask]>
Subject:
From:
"Milfajt, Robert" <[log in to unmask]>
Date:
Tue, 20 Feb 2001 16:46:01 -0600
Content-Type:
text/plain
MIME-Version:
1.0
Reply-To:
LISTSERV give-and-take forum <[log in to unmask]>
It looks like I have to write my own init.d script here, and I just wanted
to run the code that will start/stop the listserv server process past this
group to make sure I'm not going to mess something up with the software.
Missing lines include comments and setting of LSVROOT variable.

case $1 in
'start')
  # Start LISTSERV server
  if [ -f $LSVROOT/go ] ; then
    echo "starting LISTSERV server"
    $LSVROOT/go bg
  fi
  ;;
'stop')
  # Stop LISTSERV server
  if [ -f $LSVROOT/spool/listserv.PID ] ; then
    pid=`cat $DATADIR/seekd.pid`
    kill -9 $pid `ps -e -o pid -o ppid | awk "/ $pid\\$/ {print \\$1}"`
  fi
  ;;
esac

Thanks in advance for any help,

Robert Milfajt
Integration Analyst
Northwestern Memorial Hospital
Ph: 312.926.1855
FAX: 312.926.8617
mailto:[log in to unmask]

ATOM RSS1 RSS2