- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Proper Way of Adding rc Startup Scripts on HPUX
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
03-01-2004 08:42 AM
03-01-2004 08:42 AM
Usage: /sbin/rc3.d/S99bootalert { start | stop } .................... OK
However, script runs correctly... My rc scripts does not echo out anything..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 08:46 AM
03-01-2004 08:46 AM
Re: Proper Way of Adding rc Startup Scripts on HPUX
This line must come from the "start" or "*" option in the "case" statement of your rc start script.
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 08:47 AM
03-01-2004 08:47 AM
SolutionHP-UX adds 2 other non-standard command line options that most UNIX'es don't have. They are "start_msg" and "stop_msg". The command with these arguments are sent before the more traditional "start" and "stop" commands are executed. I suspect that your script does not handle these arguments correctly. Look at /sbin/init.d/template and model your script upon it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 08:48 AM
03-01-2004 08:48 AM
Re: Proper Way of Adding rc Startup Scripts on HPUX
It has the case statements already done for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 08:51 AM
03-01-2004 08:51 AM
Re: Proper Way of Adding rc Startup Scripts on HPUX
When the system boots up, rc will try to run the scripts from /sbin/init.d directory. The order and the run levels are decided based on the links created in /sbin/rc*.d directory. The system runs these scripts with "start_msg and start" arguments during the startup and "stop_msg and stop" arguments during the shutdown. So, you will need to have these 'case' statements in your script. You are basically missing start_msg and stop_msg cases to display the status messages on the screen.
Look at /sbin/init.d/template file for an example. It is a good idea to create a control file under /etc/rc.config.d directory. For ex., look at /sbin/init.d/sendmail script and see how it works.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 08:52 AM
03-01-2004 08:52 AM
Re: Proper Way of Adding rc Startup Scripts on HPUX
you should have one script in /sbin/init.d
with a start and a stop section.
What you have in /sbin/rc?.d
are just logical links. S scripts are called S99bootalert start and because it is link, it calles your script in init.d
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 08:53 AM
03-01-2004 08:53 AM
Re: Proper Way of Adding rc Startup Scripts on HPUX
Thanks y'all... and for pinting me to the template.