- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- run process when boot system
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
04-21-2003 04:45 AM
04-21-2003 04:45 AM
run process when boot system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2003 04:58 AM
04-21-2003 04:58 AM
Re: run process when boot system
create an /etc/rc.config.d/
Create a Start link to your script in /sbin/init.d from /sbin/rc2.d and a Stop link in /sbin/rc1.d
Lokk at the files in those directories for examples...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2003 05:02 AM
04-21-2003 05:02 AM
Re: run process when boot system
/etc/rc.config.d/program_name
/sbin/init.d/program_name
/sbin/rc4.d/S100program_name
Attached is an example of how we did this for an applcation called "mqseries".
Stuart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2003 05:04 AM
04-21-2003 05:04 AM
Re: run process when boot system
Preferred way to do this is to create a stop/start script, place it in /sbin/init.d. You then place links into /sbin/rc3.d for the startup & /sbin/rc2.d for the shutdown. You also want an config file in /etc/rc.config.d to be able to toggle the auto start/stop on & off.
See any file in /sbin/init.d for example os how that script should look & function. Also note how the files in /sbin/rcX.d should be linked th the /sbin/init.d files & also how they should be named & how that naming affects startup order. See any of the config files in /etc/rc.config.d for examples of how that conf file should look.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2003 05:05 AM
04-21-2003 05:05 AM
Re: run process when boot system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2003 05:12 AM
04-21-2003 05:12 AM
Re: run process when boot system
and lunch it during boot:
f.e.
1)cp /sbin/init.d/template /sbin/init.d/your_script
2)then vi, change parameters needed to launch your service
3) create /etc/rc.config.d/your_script
and add variable you defined
YOUR_SCRIPT_SERVICE=1
4) make simlinks to the appropriate runlevels to start and stop appropriate service