1833756 Members
2821 Online
110063 Solutions
New Discussion

/sbin/rc3.d script

 
SOLVED
Go to solution
CJENSEN_1
Regular Advisor

/sbin/rc3.d script

I've placed scripts in rc3.d and rc2.d to startup and shutdown oracle accordingly at system reboot. The scripts have acceptable permissions. The rc.log complains because of: su: not found. (The scripts do a su to oracle and applmgr to start/stop the databases/concurrent managers.) I can successfully manually run the scripts with ./scriptname. Not sure why they don't run when the system is rebooted.
3 REPLIES 3
James A. Donovan
Honored Contributor
Solution

Re: /sbin/rc3.d script

When the scripts are run at boot time, /usr/bin is not in the PATH.

Add the following line to your start/stop scripts

PATH=/usr/bin:$PATH

or modify your scripts to include the full path to the su command (/usr/bin/su)
Remember, wherever you go, there you are...
Sanjay Kumar Suri
Honored Contributor

Re: /sbin/rc3.d script

Generally startup/shutdown scripts are controlled by a control variable defined in /etc/rc.config.d/configuration_file.

Most of the case CONTROL_VARIABLE=1 to run the script at start/shotdown automatically. Please check its value in the configuration file used by the script /sbin/init.d/script_name.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
CJENSEN_1
Regular Advisor

Re: /sbin/rc3.d script

Thanks