- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to set a script be ran auto when the system re...
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
09-13-2007 03:50 AM
09-13-2007 03:50 AM
I wanna set a script be ran automaticly when the system reboot (HP-UX). How to do it. save to .sh to /etc/rc.config.d/ ?
thanks a lot?
-Gary
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2007 03:55 AM
09-13-2007 03:55 AM
SolutionThe manpages for 'rc(1M)' tell you how to do this and how the startup/shutdown paragigm works. ALternately, you can read:
http://docs.hp.com/en/934/startup.pdf
...which, while release for HP-UX 10.x is valid for current releases, too.
Use the '/sbin/init.d/template' script as your template.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2007 03:58 AM
09-13-2007 03:58 AM
Re: How to set a script be ran auto when the system reboot
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2007 03:58 AM
09-13-2007 03:58 AM
Re: How to set a script be ran auto when the system reboot
Thank you very much for your fast reply. I will check the doc that your provided soon.
BTW, whether I could save the .sh script to /sbin/init.d or /erc/rc.config.d
-Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2007 03:59 AM
09-13-2007 03:59 AM
Re: How to set a script be ran auto when the system reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2007 04:01 AM
09-13-2007 04:01 AM
Re: How to set a script be ran auto when the system reboot
thanks pete randall
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2007 04:04 AM
09-13-2007 04:04 AM
Re: How to set a script be ran auto when the system reboot
> BTW, whether I could save the .sh script to /sbin/init.d or /etc/rc.config.d
Get a *COPY* of the template file. It is saved in '/sbin/init.d'. The file that contains configuration variables will be saved in '/etc/rc.config.d'. Appropriate symbolic links will be made in /sbin/rc?.d' and will point to the '/sbin/init.d/' script. Thus, in all, you will genenerally have *four* files --- a configuration file; the start/stop script; a startup link; and a shutdown link file.
The documentation explains this in detail. Be sure to observe the "rule-of-1000".
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2007 04:10 AM
09-13-2007 04:10 AM
Re: How to set a script be ran auto when the system reboot
Every details
have a great day