- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Shell program / Wrapper Needed to gracefully shutd...
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
02-15-2006 09:55 AM
02-15-2006 09:55 AM
Shell program / Wrapper Needed to gracefully shutdown the session gracefully
From a Unix perspective when I asked one of the system admin , he told me the following :
"Basically run a C wrapper (or shell???) program around the qmadmin command that catches any shell disconnect/kill signal...then within that function it disconnects/exits the qmadmin session gracefully."
As I am very limited on C , what are the options open to me to actually make this happen through a shell script.
We have to do a quit in the qmadmin utility to gracefully shut it down.
Thanks to all nice and smart samaritans.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2006 11:15 AM
02-15-2006 11:15 AM
Re: Shell program / Wrapper Needed to gracefully shutdown the session gracefully
Multiple signal numbers can be placed on the same trap command. For example,
trap 'rm $TMP' 0 1 2 3 15
executes the rm $TMP command if any one of the 0, 1, 2, 3, or 15 signals are caught.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2006 11:36 AM
02-15-2006 11:36 AM
Re: Shell program / Wrapper Needed to gracefully shutdown the session gracefully
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2006 04:01 PM
02-15-2006 04:01 PM
Re: Shell program / Wrapper Needed to gracefully shutdown the session gracefully
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2006 04:12 AM
02-16-2006 04:12 AM
Re: Shell program / Wrapper Needed to gracefully shutdown the session gracefully
It's very simple.
# cat qrnadmin_start
#!/usr/bin/sh
trap "[shutdown qrnadmin commands]" 9 15
[start qrnamdin commands]
You can then start you qrnadmin session with the qrnamdin_start script. The script catches either sig 9 or sig 15, it will execute the shutdown commands.
Regards,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2006 07:38 AM
02-16-2006 07:38 AM
Re: Shell program / Wrapper Needed to gracefully shutdown the session gracefully
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2006 07:42 AM
02-16-2006 07:42 AM
Re: Shell program / Wrapper Needed to gracefully shutdown the session gracefully
truss qmadmin
....
read(0, " q\n", 1024) = 2
_exit(0)
When I did a man kill , I found this info :
exit_status
A decimal integer specifying a signal number or
the exit status of a process terminated by a signal.
Can any of the stuff that is there in "truss qmadmin" be passed thru to kill ( or any other means ) that it gracefully shuts down the process.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2006 05:07 AM
02-21-2006 05:07 AM
Re: Shell program / Wrapper Needed to gracefully shutdown the session gracefully
Opened a Case with BEA.