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
Ralf Kalwa <[log in to unmask]>
Tue, 11 Jun 1996 20:03:12 +0200
text/plain (54 lines)
According to Bernard.Devine:
>
> What is the correct thing to do under Solaris 2.x?
 
We don't use /etc/inittab. The common way is to start processes
from /etc/init.d using a shell script. This script should have
execute permissions. The "stop" part is needed for a system shutdown or
if you want to stop "listserv" by hand.
Because the script is very short, I will append it to my mail.
For more information read /etc/init.d/README
 
Hope this helps
Ralf
 
----------------------- snip snip -------------
#!/bin/sh -
#
# @(#)listserv  3.1 12/27/95 12:31:09 RZINSTALL-SYSTEM
# Ronald Kuehn <[log in to unmask]>
#
pid=`/usr/bin/ps -e | /usr/bin/grep lsv$ |\
        /usr/bin/sed -e 's/^  *//' -e 's/ .*//'`
 
LSVDIR=/srv/listserv
 
case $1 in
'start')
        if [ "${pid}" = "" ]; then
                if [ -x ${LSVDIR}/bin/go ]
                then
                        echo 'Starting Listserv.'
                        ${LSVDIR}/bin/go bg >${LSVDIR}/listserv.out 2>&1 &
                fi
        else
                echo 'Listserv is already running.'
        fi
        ;;
'stop')
        echo 'Halting Listserv.'
        /usr/bin/kill `/usr/bin/cat /var/spool/listserv/listserv.PID`
        ;;
*)
        echo "usage: /etc/init.d/listserv {start|stop}"
        ;;
esac
 
 
--
Ralf Kalwa, Institut fuer Maschinenwesen, Robert-Koch-Str. 32 oder
Rechenzentrum, Erzstr. 51, 38678 Clausthal-Zellerfeld, Germany
IMW Voice: +49 5323 72 3504 FAX.: +49 5323 72 3501
RZ  Voice: +49 5323 72 2086 FAX.: +49 5323 72 3536
[log in to unmask], "http://www.imw.tu-clausthal.de/~kalwa/"

ATOM RSS1 RSS2