- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: omniback post-exec script creates many defunct...
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
Discussions
Discussions
Forums
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
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
тАО05-06-2003 12:40 AM
тАО05-06-2003 12:40 AM
omniback post-exec script creates many defunct processes
When I run a script to start my application on a term(hpterm, xterm, dtterm..) or if I put this script in crontab and schedule to run, my application runs normal.
But if I put the same script as part of omniback backup's post-exec script, my scripts starts my application but with many defunct processes. This causes many problems later.
How can I avoid this? And I still need to use omniback backup's post-exec feature, to automate starting of my application soon after backup is completed.
thx in advance,
Ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2003 12:50 AM
тАО05-06-2003 12:50 AM
Re: omniback post-exec script creates many defunct processes
There may be problems with the enviroment when running from OmniBack. Is it possible to attach an example of the script and the post_exec command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2003 01:19 AM
тАО05-06-2003 01:19 AM
Re: omniback post-exec script creates many defunct processes
there will be more clues....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2003 02:06 AM
тАО05-06-2003 02:06 AM
Re: omniback post-exec script creates many defunct processes
That attachment didn't work... can you post it again as plain text.
Thanks
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2003 02:19 AM
тАО05-06-2003 02:19 AM
Re: omniback post-exec script creates many defunct processes
============= post-exec(/opt/omni/lbin/start_omc)====
#!/bin/ksh
# Stop OMC Applications and Oracle
su - root -c '/etc/opt/OMC/share/conf/omc_start_after_offline_backup.sh'
============ /etc/.....omc_start_after...p.sh =====
#!/bin/ksh
# Script backup off_line : OMC Application
# Autor : Ravi B. Hiremath;
# Created Date: 25th Feb 2003
. /opt/OMC/util/omcenv.ksh
# Message function to be displayed before OMC application shutdown
MESSAGE1 ()
{
echo "OMC Application Offline backup is complete. OMC is now available." > /tmp/mensagem
echo "You can start using \"omcui\" sessions." >> /tmp/mensagem
# Display the message to all the terms
/usr/sbin/wall < /tmp/mensagem
}
#
post_backup_startup ()
{
/etc/opt/OMC/share/conf/oracle_start
sleep 30
omcstart
}
# Start of script
post_backup_startup
MESSAGE1
============= /etc/..../oracle_start =============
# This script is to shutdown the oracle application
# Author : Ravi B. Hiremath
# Created on : 25th Feb 2003
ORACLE_HOME=${ORACLE_HOME:=/opt/app/oracle/product/8.1.7}
echo "start"
su - oracle -c '
svrmgrl << ENDL
connect internal;
startup;
exit;
ENDL
lsnrctl start; '
===============================================
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2003 05:55 AM
тАО05-06-2003 05:55 AM
Re: omniback post-exec script creates many defunct processes
if [ - t 0 ]
then
fi
but a better way is to create a file, e.g. /usr/local/bin/oracleenv.sh and let oracle's .profile AND your OB2 script source it like this:
. /usr/local/bin/oracleenv.sh and then NOT use the "-" in your su command.
Make sure that your sourced enviroment script does not contain an exit or return or the foreground process (shell) will exit.
I don't think that you will need to use it, but a few processes may also need to use the OB2 detach command to close file descriptors.