- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Package monitoring script
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-30-2006 06:42 PM
06-30-2006 06:42 PM
We have recently included the package montitoring script in a package.As per the script,Service guard itself should restart the processes incase process is not running instead of failover to alternative node.
When we started the package,it started without any error.But there are large number of defunc process created causing server to hang.
When we analysed in the monitoring script we have used nohup
Is the defunc processes are created because nohup is creating each time a new process when process failure happens..?
Can we avoid this by removing nohup in the script..?
Please advice.
Regards
Shankar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2006 06:49 PM
06-30-2006 06:49 PM
Re: Package monitoring script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2006 03:24 PM
07-02-2006 03:24 PM
Re: Package monitoring script
Your service monitoring script will be run AFTER the user defined commands, and will need to monitor your app, and will only exit when the application is no longer running.
(this triggers the failover)
As mentioned previously, let us know more about what you are trying to accomplish, and we can help...
-tjh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2006 01:01 AM
07-03-2006 01:01 AM
Solution#SERVICE_NAME[0]=""
#SERVICE_CMD[0]=""
#SERVICE_RESTART[0]=""
Notice the SERVICE_RESTART feature, which allows you to specify how many times you would like to restart the SERVICE_CMD.
The SERVICE_CMD could be a command, or a script that does more complex things.
The example SERVICE_CMD shown in the package control script is:
SERVICE_CMD[0]="/usr/bin/X11/xclock -display 192.10.25.54:0"
Note that there is no 'exec nohup' necessary.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 08:36 AM
07-06-2006 08:36 AM
Re: Package monitoring script
Thanks for ur replies.
Issue sorted out when i changed the line that starts the daemon as below
su - aisys -c " cd to absolute path of the directory;nohup ./daemon.sh " &
Previously we are trying to nohup the deamon.sh directly as below
su - aisys -c " nohup
I really dont know how it differs.Anyway issue resolved now..:))
Cheers,
Shankar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2006 08:39 AM
07-06-2006 08:39 AM
Re: Package monitoring script
Cheers
Shankar.B