HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Script hanging issue again
Operating System - HP-UX
1834148
Members
2131
Online
110064
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-29-2004 06:05 AM
03-29-2004 06:05 AM
Script hanging issue again
Last week, I posted about a script that appeared to hang randomly. I've managed to duplicate the problem consistently now. Because the system needs to reboot whether or not the PDC patch gets installed, I added some logic to do that. So now that it's hanging consistantly on my test system, I notice that the shutdown process appears to be what's hanging things up (and presumably the autoreboot from the PDC patch previously on occasion). I see shutdown in the process list, I get the broadcast message on the console that it's going down, but it never actually initiates the rc script to perform the shutdown. I've never seen this happen before. Any ideas?
--
Jeff Traigle
Jeff Traigle
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 06:08 AM
03-29-2004 06:08 AM
Re: Script hanging issue again
Hmmm... naturally, just as I send this something occurs to me... any chance it's because I used "shutdown -r 10" instead of "shutdown -r -y 10"? :)
--
Jeff Traigle
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 06:17 AM
03-29-2004 06:17 AM
Re: Script hanging issue again
Hi,
Yes, I think that is the problem.
# shutdown -r 10
SHUTDOWN PROGRAM
03/29/04 11:13:10 PST
Waiting a grace period of 10 seconds for users to logout.
Do not turn off the power or press reset during this time.
Broadcast Message from root (pts/ta) Mon Mar 29 11:13:20...
SYSTEM BEING BROUGHT DOWN NOW ! ! !
Do you want to continue? (You must respond with 'y' or 'n'.):
This is what happens.
System just keeps waiting on the prompt. I dont know if there is a time out for this prompt.
You should use shutdown -r -y 10
Sundar
Yes, I think that is the problem.
# shutdown -r 10
SHUTDOWN PROGRAM
03/29/04 11:13:10 PST
Waiting a grace period of 10 seconds for users to logout.
Do not turn off the power or press reset during this time.
Broadcast Message from root (pts/ta) Mon Mar 29 11:13:20...
SYSTEM BEING BROUGHT DOWN NOW ! ! !
Do you want to continue? (You must respond with 'y' or 'n'.):
This is what happens.
System just keeps waiting on the prompt. I dont know if there is a time out for this prompt.
You should use shutdown -r -y 10
Sundar
Learn What to do ,How to do and more importantly When to do ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 08:14 AM
03-29-2004 08:14 AM
Re: Script hanging issue again
There's no timeout on it... or at least not one that is within 5 minutes or so.
I also had to schedule the reboot for a minute later via at. Otherwise the script that this script was run from would get killed and the shutdown would be aborted. I tried putting the shutdown in the background to allow things to complete, but that just sent the system into single user mode. Not sure I understand why it did that, but, as long as I have a workable solution, I guess it's a matter of trivia and not terribly important.
I also had to schedule the reboot for a minute later via at. Otherwise the script that this script was run from would get killed and the shutdown would be aborted. I tried putting the shutdown in the background to allow things to complete, but that just sent the system into single user mode. Not sure I understand why it did that, but, as long as I have a workable solution, I guess it's a matter of trivia and not terribly important.
--
Jeff Traigle
Jeff Traigle
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP