Re: ADSM/6000 startup & shutdown at boot time
1995-04-13 18:01:52
Here's the shell script we use (rc.adsm) started by init to start both
the adsm server and the scheduler client on the same system. The sleep
command is used to hold off starting the scheduler until we are
realtively certain that the server initialization is complete and that it
is ready to accept scheduler initiated sessions. Hope this helps.
MK
------------
#!/bin/ksh
#!/bin/ksh
# Shell script to start ADSM functions. Started by init
################################################################
# Start the ADSM server (assumes kernel extension already loaded)
ADSMSERVDIR=/usr/lpp/adsmserv/bin
ADSMSERVEX=dsmserv
ADSMLOGDIR=/var/adm
if [[ -a $ADSMSERVDIR/$ADSMSERVEX ]]; then
(cd $ADSMSERVDIR; ./$ADSMSERVEX 2>> $ADSMLOGDIR/dsmserv.stderr >>
$ADSMLOGDIR/dsmserv.stdout &)
else
echo `date` "ADSM server executable: " $ADSMSERVDIR"/"$ADSMSERVEX "not found"
>> dsmserv.stderr
fi
# Start the ADSM scheduler
ADSMDIR=/usr/lpp/adsm/bin
ADSMEX=dsmc
if [[ -a $ADSMDIR/$ADSMEX ]]; then
(cd $ADSMDIR; /bin/sleep 60; ./$ADSMEX schedule 2>> $ADSMLOGDIR/dsmc.stderr
>> $ADSMLOGDIR/dsmc.stdout &)
else
echo `date` "ADSM line mode client:" $ADSMDIR"/"$ADSMEX "not found" >>
dsmc.stderr
fi
--
Michael W. Kearney Phone : (215)-898-1153
Michael W. Kearney Phone : (215)-898-1153
University of Pennsylvania Fax : (215)-898-1729
3401 Walnut Street, Suite 335B e-mail:michael AT udcemail.udc.upenn
DOT edu
Philadelphia, Pennsylvania 19104-6228
'"User" is a swearword employed by systems programmers to denote people
who want useful output from the computer they paid for.' - John Blatt
|
|
|