Wed, 23 Aug 2006 16:37:49 -0700
|
I've had Listserv for Solaris 9 and for Suse 9. In both cases, Listserv would not let go of the starting process unless started manually or via /etc/inittab. Rc and cron starts would hang. I've tried "go > logfile", "go bg > logfile". I've tried "&" and "nohup" methods as well, but in all cases except for manual and inittab, Listserv would not background for my two OS's. Perhaps it is different for others'. To keep my log files a managable size, I have one cron job to stop Listserv weekly, and another cron job to start it a minute later. The starting cron job shell ends up hanging around in memory for a week, but it goes down once lsv is killed and the shell output is > null anyway.
Installation instructions say to put it in inittab:
http://www.lsoft.com/manuals/1.8e/unixinst.html#Autostart
-----Original Message-----
From: LISTSERV site administrators' forum [mailto:[log in to unmask]] On Behalf Of Graham Tolliver
Sent: Wednesday, August 23, 2006 11:08
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!
|
|
|