- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rc script hangs at system reboot.
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
10-28-2002 03:26 AM
10-28-2002 03:26 AM
rc script hangs at system reboot.
I need to start up a java program when the HP-UX system reboots. I have a rc script (say ABC)(in /sbin/init.d ) that calls another script (say XYZ)which starts up the java process. A symbolic link created in /sbin/rc3.d directory for this script (ABC).
All the environment variables required for my java program are set correctly in the XYZ script. My java process starts up, but the problem is no other start up scripts in rc3.d get executed, that have symblic links in sequence after the one I create. The HP-UX console shows me the status toggling between Start/Busy for this process. I am not sure why this is hanging. Could I have some help on this asap please. Thanks in advance - Vivek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 03:24 AM
10-28-2002 03:24 AM
Re: rc script hangs at system reboot.
Is there any output in /etc/rc.log for this startupscript ?
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 03:34 AM
10-28-2002 03:34 AM
Re: rc script hangs at system reboot.
Two options
1. Move this startup script to last in the startup sequence.
2. In the script pipe each line yo a log file.
i.e.
whatever > /tmp/Java.log
next >>/ tmp/Java.log
next >>/tmp/Java.log
Then examine the log file.
If the script start from the command prompt and not from the script then environment is to blame.
Are all the files systems available when the script is run?
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 03:36 AM
10-28-2002 03:36 AM
Re: rc script hangs at system reboot.
If you put set -x on top of the script, and you run it by hand, you might be able to see what causes the script to hang.
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 03:39 AM
10-28-2002 03:39 AM
Re: rc script hangs at system reboot.
If your ABC script simply calls XYZ, it will wait for XYZ to finish. This won't happen because XYZ is your application, not just a script which starts it up.
Change your ABC script to run XYZ as an asynchronous process, either:
nohup XYZ &
or
XYZ &
In the latter case you should insert the statement
trap '' 1
in the XYZ script to prevent it terminating when its parent (ABC) exits.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 03:42 AM
10-28-2002 03:42 AM
Re: rc script hangs at system reboot.
Thanx for the immediate response.
rc.log has an output..in the sense when I do a "ps -eaf | grep java", my process is running.
As I told you the startup script after this in sequence doensnt get called at all.
Here is the dir listing:
"
troika:/sbin/rc3.d#>ls -lrt S*
lrwxrwxrwx 1 root sys 18 Oct 26 14:14 S950cdodb -> /sbin/init.d/cdodb
lrwxrwxrwx 1 root sys 23 Oct 26 14:14 S975cdocompdmn -> /sbin/init.d/cdocompdmn
"
S950cdodb gets executed, the java process runs but the next one S975cdocompdmn isnt called.
Iam still trying though...
Vivek.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 04:37 AM
10-28-2002 04:37 AM
Re: rc script hangs at system reboot.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2002 11:58 PM
11-06-2002 11:58 PM
Re: rc script hangs at system reboot.
Thanks for the help ...
The script works with nohup.
Vivek.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2002 12:47 AM
11-07-2002 12:47 AM
Re: rc script hangs at system reboot.
This side of the world does not properly respond to the points system.
I am also from this side of the world.
Vivek take a look at the points system and get some points to the admins who have helped you.
Thanks