- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Starting a service at boot time
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
08-24-2001 01:30 PM
08-24-2001 01:30 PM
Starting a service at boot time
(the rc?.d dirs and the Sxxscripts) and I need to do the same in
a HPUX platform.
I would like a document where to read about it.
Any hint ?
Thanks
Francisco
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2001 01:38 PM
08-24-2001 01:38 PM
Re: Starting a service at boot time
The startup scripts are normally in /sbin/init.d directory, with the configuration files in /etc/rc.config.d
The links are normally created in /sbin/rc?.d directory for different run levels.
Here ? is the runlevel 0, 1,2,3,4 etc
Also in the /usr/share/doc directory there is a document called start_up.txt which describes the whole startup procedure.
-HTH
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2001 01:40 PM
08-24-2001 01:40 PM
Re: Starting a service at boot time
/sbin/rc*.d directory.
The startup and shutdown scripts are in /sbin/init.d
/sbin/rcx.d determines what run level we want these scripts to run.
/etc/rc.config.d/config_file set the environment for the files in /sbin/init.d
mostly flag files
The following URL gives a good explanation
http://www.docs.hp.com/hpux/onlinedocs/os/startup.pdf
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2001 01:42 PM
08-24-2001 01:42 PM
Re: Starting a service at boot time
Even though it's for 10.x it will be quite helpful.
Another tip: Use the ITRC search page. I found a number of hits just by searching for "boot script".
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2001 01:44 PM
08-24-2001 01:44 PM
Re: Starting a service at boot time
The file /sbin/init.d/template is a good starting place for making your own start/stop scripts.
Each script under /sbin/init.d normally performs both the startup and shutdown functions. And once you write your script and test it out you create two links one for startup and one for shutdown.
for eg: you create a script called "myscript" (make it an executable and set the right permissions and test it)
you want this to come up in run level 3
ln -s /sbin/init.d/myscript /sbin/rc3.d/S992myscript
ln -s /sbin/init.d/myscript /sbin/rc1.d/K992myscript
This ensures that your scripts does a start in run level 3 and a stop in run level 1
-HTH
Ramesh