- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Adding a program to run during 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
01-17-2001 08:38 AM
01-17-2001 08:38 AM
Adding a program to run during Boot time
I had copied the Script in /sbin/init.d and also created a link in /sbin/rc3.d using ln -s command.
But it does not run.
Do I have to go through any other steps do that the script runs duting the bootup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2001 08:54 AM
01-17-2001 08:54 AM
Re: Adding a program to run during Boot time
Check the /etc/rc.log for any information about your script. Make sure that your script uses the Posix shell and declares its intention with "#!/sbin/sh" and not "#!/usr/..." although /usr should be mounted by this point. Make sure that /etc/inittab has your default runlevel set to '3' -- the first line should be "init:3:initdefault:". You should also have a link in /sbin/rc2.d for a kill.
An excellent white paper fully describing all requirements is the "HP-UX 10.x Startup and Configuration (HP-UX 10.x)" found in PDF format at:
http://docs.hp.com/hpux/os/10.x/index.html
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2001 09:07 AM
01-17-2001 09:07 AM
Re: Adding a program to run during Boot time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2001 09:10 AM
01-17-2001 09:10 AM
Re: Adding a program to run during Boot time
This directory is checked and all the files read in to set up variables that are then acted upon, indicating in the simplest instance whether to skip or start a particulasr rc script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2001 11:35 AM
01-17-2001 11:35 AM
Re: Adding a program to run during Boot time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2001 08:16 AM
01-18-2001 08:16 AM
Re: Adding a program to run during Boot time
I.E.
case $1 in
start)
;;
stop)
;;
esac
I usually add the "start_msg" and "stop_msg" as well to the boot scripts so that I can see if they are starting....
Another smaller point is does the link number overlap with another?
> ls /sbin/rc3.d
S990dtlogin.rc S990myscript.rc
I have seen where one of these scripts do not start up because of this.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2001 08:35 AM
01-18-2001 08:35 AM
Re: Adding a program to run during Boot time
You can put echo statements in the script as a troubleshooting tool. Also, check on the the return status (echo "$?"). Try to place the set -x in the beginning of the script as well so you can follow its steps. Redirect all to a log file somewhere where you can view the outputs.
These are only aids to help find the culprit. I would also check the documents concerning the start/stop boot process as well.