HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SG test_return ??
Operating System - HP-UX
1836634
Members
1514
Online
110102
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
Go to solution
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
12-22-2005 02:29 AM
12-22-2005 02:29 AM
Within our package start/stop script we start our applications and then do a test_return 56 and within that we execute:
56)
print "\tERROR: Application Start "
print "\tERROR: Failed to start/stop customer commands"
halt_services
customer_defined_halt_cmds
disown_dtc
remove_ip_address
verify_ha_nfs stop
umount_fs
deactivate_volume_group
deactivate_disk_group
to_exit=1
;;
If at this point I don't want to have SG start the halt package process, but rather just send out a notification that errors occured, can I change this to something like:
54)
print "\tERROR: Application Start "
print "\tERROR: Failed to start/stop customer commands"
wall message_file
to_exit=0
;;
This would allow the already started databases to remain up and then the applications group can fix the application startup problem.
56)
print "\tERROR: Application Start "
print "\tERROR: Failed to start/stop customer commands"
halt_services
customer_defined_halt_cmds
disown_dtc
remove_ip_address
verify_ha_nfs stop
umount_fs
deactivate_volume_group
deactivate_disk_group
to_exit=1
;;
If at this point I don't want to have SG start the halt package process, but rather just send out a notification that errors occured, can I change this to something like:
54)
print "\tERROR: Application Start "
print "\tERROR: Failed to start/stop customer commands"
wall message_file
to_exit=0
;;
This would allow the already started databases to remain up and then the applications group can fix the application startup problem.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2005 02:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2005 02:41 AM
12-22-2005 02:41 AM
Re: SG test_return ??
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2005 02:45 AM
12-22-2005 02:45 AM
Re: SG test_return ??
Mike --
The actual key to the script stopping is "exit_value".
So if some OTHER aspect of the start up fails and to_exit is set (which will trigger exit_value being set) or exit_value is set directly, then the package will still fail.
However, your change should keep the script from failing within that particular part of the package startup.
The actual key to the script stopping is "exit_value".
So if some OTHER aspect of the start up fails and to_exit is set (which will trigger exit_value being set) or exit_value is set directly, then the package will still fail.
However, your change should keep the script from failing within that particular part of the package startup.
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
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