Thanks to all who replied, too many to mention. The shutdown kill script was in the wrong directory. The system runs init scripts as it *enters* a run level not as it leaves a run level, so if it's going to go to init level 0 it will run stuff in /etc/rc0.d. Also it's recommended putting the script in /etc/init.d with links from rc0.d, rc1.d, rc2.d, and rcS.d (assuming you only want Oracle running when the machine is fully up and multi-user capable.) Thaks again, Marco >From: "Marco Greene" >To: sunmanagers@sunmanagers.org >Subject: Shutdown Script >Date: Mon, 10 Mar 2003 12:57:32 -0500 > >I have Solaris 2.7 running.I try to start up and shut down Oracle at >system start up and shut down. The start up script /etc/rc3.d/S10orastart >works fine, the oracle database is started when the system comes up. The >shut down script/etc/rc3.d/K10orastopdoes not work at all.The system >doesn't execute it when it shuts down. If I run the script manually it >works fine. Here is the script, it has only one line: # cat >/etc/rc3.d/K10orastopsu - oracle -c >"/opt/oracle/product/8.1.7/bin/dbshut" >/var/logs/orastop.log 2>&1 It >does not even create the log file /var/logs/orastop. I tried also without >the log file, still nothing.su - oracle -c >"/opt/oracle/product/8.1.7/bin/dbshut" I think the system ignores >completely my script at shut down. # ls -l /etc/rc3.d >-rw-r--r-- 1 root sys 1708 Sep 1 1998 README-rwxr-xr-x >1 root sys 440 Mar 4 2003 K10orastop >-rwxr--r-- 6 root sys 2307 Sep 1 1998 S15nfs.server >lrwxrwxr-x 1 root other 21 Aug 3 2001 S25mdlogd -> >../init.d/init.mdlogd* >-rwxr--r-- 6 root sys 404 Sep 1 1998 S76snmpdx >-rwxr--r-- 6 root sys 861 Sep 1 1998 S77dmi >Any help will be appreciated. TIA,Marco > >------------------------------------------------------------------------ > >Help STOP SPAM with the new MSN 8 and get 2 months FREE* >_______________________________________________ >sunmanagers mailing list >sunmanagers@sunmanagers.org >http://www.sunmanagers.org/mailman/listinfo/sunmanagers ------------------------------------------------------------------------ Protect your PC - Click here for McAfee.com VirusScan Online _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Mon Mar 10 13:51:30 2003
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:04 EST