We are currently running scripts through /etc/init.d/rcX, which, I realize, is something different, but we also run as wasadmin using a stored userID and password. Here is the script we use, although ultimately simple, it works. Not sure what the CM product is. We have DB2 and WAS on separate Suse 9 images. DB2 is one image at present, and WAS is a cluster of 3 with a shared binaries image and one deployment manager server.
echo "Starting IBM Websphere Application Server on Linux11.." su - wasadmin -c /wasprofiles/profile/Linux11Custom/bin/startNode.sh; su - wasadmin -c "/wasprofiles/profile/Linux11Custom/bin/startServer.sh linux11AppSrv01;" echo "... start up complete for Websphere Application Server on Linux11"; exit 0 echo "Stopping IBM Websphere Application Server on Linux11..."; su - wasadmin -c "/wasprofiles/profile/Linux11Custom/bin/stopServer.sh linux11AppSrv01;" su - wasadmin -c "/wasprofiles/profile/Linux11Custom/bin/stopNode.sh;" echo "... shutdown complete for Websphere Application Server on Linux11"; exit 0 DM is simply stopManager.sh Daryl On 10/23/07, LJ Mace <[EMAIL PROTECTED]> wrote: > > We are Suse9,Z/VM 5.2 shop. > I'm having a small problem and am wondering if someone > can help me out. > I've written / integrated some scripts to bring down > DB2,WAS,CM, then backup/zip the files up ,and restart > the systems. > All the scripts work fine separately and together if > I'm am logged on as root, but if I submit the same > script using crontab everything BUT the startup works. > What happens is the system looks as if everything is > up(per the task count) but we are unable to log on to > our DB using WAS. > All we then do is su into root run the startup > procedure and everything works. > All the proper calls /paths are in the scripts and I > have even placed roots' path in the path stmt in > /etc/crontab. > I'm really at a loss. > thanks > Larry > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ---------------------------------------------------------------------- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or > visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > -- Daryl R. Hoffman System Administrator Administrative Information Systems The Pennsylvania State University Cell/Home: 814-441-9448 Work: 814-863-3829 Website: http://www.personal.psu.edu/drh4 email: [EMAIL PROTECTED] [EMAIL PROTECTED] ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
