Thanks to all who helped: (apologies if any names are inadvertently missing) Lee Trujillo [lee.trujillo@navidec.com] Andrew J Caines [A.J.Caines@halplant.com] Josh N/A [endlessvortex@hotmail.com] Kai-Thorsten Hambrecht [kai@hambrecht.org] manjeet. singh [manjeet.singh@eds.com] Andrew Stueve [andy.stueve@proponix.com] What each of them suggested / worked for me was: Edit the start script in the secure instance of iplanet so that it gets the feed of the password from a file (password.conf) maintained under only root permissions. The line in the start script: -start) ./$PRODUCT_BIN -d $PRODUCT_SUBDIR/config $@ if test $? -ne 0 ; then exit 1 fi ;; should look like this:- -start) ./$PRODUCT_BIN -d $PRODUCT_SUBDIR/config $@ < password.conf if test $? -ne 0 ; then exit 1 fi ;; or modify to look like this:- -start) (echo 'YOUR_PASSWD') | ./$PRODUCT_BIN -d $PRODUCT_SUBDIR/config $@ if test $? -ne 0 ; then exit 1 fi ;; Alternatively, to start up the secure iplanet instance we can specify: echo "password" | ./start Also thanks to Andrew J Caines [A.J.Caines@halplant.com] for explaining the funda of ">logfile.log 2>&1 &". These definitely work very well and m-now my startup scripts are running perfectly. ------------------------------------------------------------------------ --------------------------------- Here's my original query: On Monday 16 December 2002 09:11, you wrote: > hi all, > > We use iPlanet Web server 4.1. We have 2 secure instances of the server > installed. From the browser GUI I can easily start the secure instances. > But I am trying to do the same using scripts, so that when the machine > starts up/ reboots I would have all my servers running by default. But > somehow only the non secure instances run and the secure instances fail > to startup although no error message is thrown: I am pasting the script > here, please tell me where I am going wrong... > ------------------------------- > #!/usr/bin/sh > > cd /apps/iplanet/https-admserv > echo "Starting iPlanet Admin server at `date`" >> adminserverstart.log > ../start >> adminserverstart.log > chown webadmin:web adminserverstart.log > chmod 0644 adminserverstart.log > > cd /apps/iplanet/https-lloyds-docs-232 > echo "Starting https-lloyds-docs-232 instance at `date`" >> > web1start.log > ../start >> web1start.log > chown webadmin:web web1start.log > chmod 0644 web1start.log > > cd /apps/iplanet/https-lloyds-securedocs-232 > echo "Starting https-lloyds-securedocs-232 instance at `date`" >> > web1securestart.log > ../start -start lloydsoflondon >> web1securestart.log > chown webadmin:web web1securestart.log > chmod 0644 web1securestart.log > > cd /apps/iplanet/https-lloyds-cmsdocs-232 > echo "Starting https-lloyds-cmsdocs-232 instance at `date`" >> > cmsstart.log > ../start >> cmsstart.log > chown webadmin:web cmsstart.log > chmod 0644 cmsstart.log > > cd /apps/iplanet/https-lloyds-cmssecuredocs-232 > echo "Starting https-lloyds-cmssecuredocs-232 instance at `date`" >> > cmssecurestart.log > ../start >> cmssecurestart.log > chown webadmin:web cmssecurestart.log > chmod 0644 cmssecurestart.log > ------------------------------------------------- > > regards, > Anoop Anoop Kumar V. ? Sapient Presidency Building, Delhi- Mehrauli Road Gurgaon 122001 Haryana India +91.124.682.6125 desk +91.124.680.8015 fax _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Fri Dec 20 04:33:38 2002
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:00 EST