Wed, 23 Aug 2006 14:29:41 -0400
|
Graham,
I could not get Listserv 14.5 to work with Solaris_10. I had to use
Solaris_9. Everything works properly in Soalris_9.
John Hiler
513-229-1131 Work
513-325-7572 Cell
-----Original Message-----
From: LISTSERV site administrators' forum
[mailto:[log in to unmask]] On Behalf Of Graham Tolliver
Sent: Wednesday, August 23, 2006 2:08 PM
To: [log in to unmask]
Subject: Problem starting ListServ via init script
Hello,
I am running a Solaris 10 box.
When I restarted the box, the script that runs ListServ doesn't load
properly, hence preventing all of the other rc3 init scripts from
loading properly.
The script will run properly if I run it from the command line.
Here is part of the output from
/var/svc/log/milestone-multi-user-server:default.log:
[ Aug 23 14:07:11 Executing start method ("/sbin/rc3") ]
Executing legacy init script "/etc/rc3.d/S100listserv".
Starting Listserv...Sun Microsystems Inc. SunOS 5.10 Generic
January 2005
You have mail.
> Starting LISTSERV as a background process
done.
Legacy init script "/etc/rc3.d/S100listserv" exited with return code 0.
Executing legacy init script "/etc/rc3.d/S16boot.server".
Legacy init script "/etc/rc3.d/S16boot.server" exited with return code
0.
Executing legacy init script "/etc/rc3.d/S50apache".
httpd starting.
Legacy init script "/etc/rc3.d/S50apache" exited with return code 0.
Executing legacy init script "/etc/rc3.d/S52imq".
Here is the init script:
#!/bin/sh
#
# The listserv startup and shutdown script
#
# It should be linked to appropriate files in /etc/rc2.d
#
USAGE="Usage: $0 {start | stop}"
LISTSERV_DIR=/local/listserv
LISTSERV_PID=${LISTSERV_DIR}/spool/listserv.PID
if [ ! -d ${LISTSERV_DIR} ]
then # /local not mounted ??
exit 0
fi
case "$1" in
'start')
/usr/bin/printf "Starting Listserv..."
/usr/bin/su - listserv -c "cd $LISTSERV_DIR && ./go bg"
/usr/bin/printf "done.\n"
;;
'stop')
/usr/bin/printf "Stopping listserv..."
PID=`/usr/bin/cat ${LISTSERV_PID}`
kill $PID
/usr/bin/printf "done.\n"
;;
*)
echo ${USAGE}
exit 1
;;
esac
Thanks in advance!
|
|
|