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
Stacey Conrad <[log in to unmask]>
Wed, 23 Aug 2006 17:06:52 -0400
text/plain (107 lines)
I had Listserv 14.5 working with Solaris 10 up until I tried to convert
the startup script to the new SMF format.  I don't recall having any
problems with it when it was still using the legacy startup scripts,
however it's been a couple of months since I've worked on it.

Is there anyone else out there that has Listserv and Solaris 10 playing
nicely (and using SMF)?  I'm going to have some questions of my own in a
few days if I can't figure out my own issues. :)

Stacey Conrad
Email and Unix Admin
Millersville University
-----Original Message-----
From: LISTSERV site administrators' forum
[mailto:[log in to unmask]] On Behalf Of Hiler, John
Sent: Wednesday, August 23, 2006 2:30 PM
To: [log in to unmask]
Subject: Re: Problem starting ListServ via init script

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!

ATOM RSS1 RSS2