Forum Discussion

infinitiguy's avatar
14 years ago

clean script exiting abnormally (exit code 0x9)

I recently upgraded to VCS 5.1 and I'm noticing if I bring my application offline the clean script is abnormally exiting with exit code (0x9).  Another effect, which made me notice this in the first place is that when I bring my application offline VCS doesn't actually recognize that it was gone offline and doesn't fail it over.  I can switch the application manually between both nodes just fine. 

 

Has anyone experienced this behavior before and know what might be causing it?  Let me know what logs might be helpful and I can provide them.  The VCS clean script is very simple..

 

PGREP=/usr/bin/pgrep
KILL=/bin/kill
$KILL -9 `$PGREP -f httpd`
$KILL -9 `$PGREP -f teamforge`
exit 0
  • I have figured out what your issue probablly is - you are killing a process matching "httpd", but the clean entry point will match this and therefore your script is killing /opt/VRTSvcs/bin/Application/clean - if you exclude this (like add "grep -v /opt/VRTSvcs/bin/Application/clean") then script should work

    But actually, you don't need clean script as the the agent clean (i.e code in /opt/VRTSvcs/bin/Application/clean) will kill processes in PID files, so you only need a clean if you were running something like /etc/init.d/httpd -force stop (if such an option existed).

    Mike

17 Replies