LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

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

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

Print Reply
"Milfajt, Robert" <[log in to unmask]>
Tue, 20 Feb 2001 16:46:01 -0600
text/plain (31 lines)
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