- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- The db subsytems startup through rc config
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2004 04:03 AM
тАО04-29-2004 04:03 AM
The generic script for starting & stopping the db through the 'start' & 'stop' parameter is available on /sbin/rc.d directory. But the parameter is not passed, how the db could start automatically.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2004 05:04 AM
тАО04-29-2004 05:04 AM
Re: The db subsytems startup through rc config
Here is how it works.
in /etc/rc5.d or 3 or 4 depending on the run level you want.
You have a soft link to a start stopscript in /etc/init.d
Example
You want to auto start oracle, start run level 5, stop run level 4
cd /etc/rc5.d
ln -s /etc/init.d/oracle S89oracle
Capital S starts it
cd /etc/rc4.d
ln -s /etc/init.d/oracle K11oracle
the script /etc/init.d/oracle you have to usually write yourself, though recent releases of oracle actually provide this.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2004 09:03 PM
тАО04-29-2004 09:03 PM
Re: The db subsytems startup through rc config
on Redhat you better use
#chkconfig
and
#services
to manage bootup services.
Pls. check in this forum: you'll find almost all you need to know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2004 09:17 PM
тАО04-29-2004 09:17 PM
Re: The db subsytems startup through rc config
The O/S is HP-UX.
The scrip on /sbin/init.d for the db startup is linked to /sbin/rc#.d/S###dbstart.
But the issue is the script can only start/stop the database based on the parameter being passed. So how the parameter is is sent to the script?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2004 10:36 PM
тАО04-29-2004 10:36 PM
SolutionI think you post your quest to the wrong forum, anyway
/sbin/rc does the following:
init_list "Starting subsystems for run-level $new"
get_scripts ${new} S |
while read name descrip; do
if [ -s "$name" ]; then
add_list "$name start" "$descrip"
found=1
fi
done
which runs each script taken from
get_scripts() {
state=$1
mode=$2
dir=/sbin/rc${state}.d
ls $dir 2>/dev/null |
while read name
do
case $name in
${mode}*)
path=$dir/$name
if [ "$mode" = "S" ]; then
desc=`$path start_msg`
elif [ "$mode" = "K" ]; then
desc=`$path stop_msg`
fi
echo $path $desc
esac
done
}
man rc
more /sbin/rc
Peace, R.