- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- startup process after boot
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
Forums
Discussions
Discussions
Discussions
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
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
11-07-2005 11:12 AM
11-07-2005 11:12 AM
startup process after boot
i.e. processname environment start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 11:33 AM
11-07-2005 11:33 AM
Re: startup process after boot
To start a process when the system boots,you have to copy the startup script to /sbin/init.d/ directory and make software links:
For example to start oracle when the system boots and if the script name is dbora)
To start:
ln -s /sbin/init.d/dbora /sbin/rc2.d/S999dbora
To stop:
ln -s /sbin/init.d/dbora /sbin/rc1.d/K108dbora
Depending on which run level you want to start your oracle database, you need to prepare a script and put in /sbin/init.d/.
Then appropriate start and kill scripts in /sbin/rcx.d/
You can refer /sbin/init.d/template script to start with.
And also have the file in /etc/rc.config.d oracle which has the following lines
ORACLE_START=1; export ORACLE_START
IA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 12:12 PM
11-07-2005 12:12 PM
Re: startup process after boot
The "original", definitive whitepaper on this subject appeared during the 9x to 10x rework of HP-UX. It's available on the docs.hp.com website under 10.x and is definitely work reading:
http://docs.hp.com/en/934/startup.pdf
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 12:57 PM
11-07-2005 12:57 PM
Re: startup process after boot
#!/bin/ksh
/pathname/processname arg1 start
if [ $? = 0 ]
then exit 0
else exit 1
fi
What are the rc1.d and rc2.d processes? I'm assuming the system will read the rc2.d files on startup by default and the rc1.d by default on shutdown. Do I then need to specify start and stop in my script? It's not an oracle script, just a database process called cybermation I have been starting manually from command line after booting. The syntax is processname arg1 start. I'm a little confused here. What is the difference in rc1,2,3 etc?? Can you explain this a little? Thanks for your help.
To start:
ln -s /sbin/init.d/dbora /sbin/rc2.d/S999dbora
To stop:
ln -s /sbin/init.d/dbora /sbin/rc1.d/K108dbora
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 01:47 PM
11-07-2005 01:47 PM
Re: startup process after boot
rc1.d and rc2.d⠦⠦.. are Run-level Directories.
The /sbin/rc#.d (where # is a run-level [0..6]) directories are startup and shutdown sequencer directories. They contain only symbolic links to startup/shutdown scripts in /sbin/init.d that are executed by /sbin/rc on transition to a specific run level.
For example, the /sbin/rc3.d directory contains symlinks to scripts that are executed when entering run level 3.
These directories contain two types of link files: start links and kill links. Start links have names beginning with the capital letter â Sâ and are invoked with the â startâ argument at system boot time or on transition to a higher run level. Kill links have names beginning with the capital letter â Kâ and are invoked with the â stopâ argument at system shutdown time, or when moving to a lower run level.
Yes your script should specify the start and stop. The example that I gave dbora is a user defined script where you can have functions defined in the script. One to start and the other to stop. The pdf provided by James RF has more details.
I hope this helps.
IA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2005 12:10 AM
11-08-2005 12:10 AM
Re: startup process after boot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2005 12:15 AM
11-08-2005 12:15 AM
Re: startup process after boot
-Arun