- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Shut multiple processes at the same 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
06-04-2010 03:08 AM
06-04-2010 03:08 AM
Shut multiple processes at the same time
I have 2 nodes in a cluster and a package with a lot of processes (around 30) running on one of the nodes. When I'm halting the package with cmhaltpkg it takes around 20 minutes to stop, probably due to many processes waiting to stop one at a time. Is there any way that I can make it stop multiple processes at the same time?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2010 03:42 AM
06-04-2010 03:42 AM
Re: Shut multiple processes at the same time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2010 04:19 AM
06-04-2010 04:19 AM
Re: Shut multiple processes at the same time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2010 04:22 AM
06-04-2010 04:22 AM
Re: Shut multiple processes at the same time
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2010 09:10 AM
06-04-2010 09:10 AM
Re: Shut multiple processes at the same time
listofpid content the list of pid to wait
( sleep 10 ;echo 10) &
listofpid=$!
( sleep 11 ;echo 11) &
listofpid="$listofpid $!"
( sleep 12 ;echo 12) &
listofpid="$listofpid $!"
typeset -i nb=0
for p in $listofpid
do
echo $p
kill -2 $p
while :
do
kill -0 $p 2>/dev/null && break
sleep 1
done &
nb=nb+1
echo $nb
done
echo
wait
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2010 05:49 AM
06-07-2010 05:49 AM
Re: Shut multiple processes at the same time
That would be the normal way to stop "a package".
> Meanwhile the other packages...
It depends. Are these packages independent of one another? And do you have separate shutdown scripts for *each* package that are run in sequence?
If each package is independent of the others, you should be able to run the shutdown process for each package separately. There may be an impact to the server when all these are shutting down - there are probably doing a lot of processing and i/o during shutdown but that can be tested.
But you are still not providing enough details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2010 09:11 AM
06-07-2010 09:11 AM
Re: Shut multiple processes at the same time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2010 09:08 AM
06-08-2010 09:08 AM
Re: Shut multiple processes at the same time
Also, you mentioned while the first package is shutting down and the others are waiting...
Well, this shutdown script that halts the packages in sequence, can it be broken down into several halt scripts, one shutdown script for each package? If these packages are not dependent on each other, maybe you can schedule separate shutdown scripts to run at the same time.