A job finishes with status completed instead of Aborted when the script launched by the uproc is killed

book

Article ID: 87033

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction

Error Message :
No error message appears.
Patch level detected:Dollar Universe 6.0.00
Product Version: Dollar.Universe 6.0.0

Description :A job finishes with status completed instead of Aborted when the script launched by the uproc is killed

Cause

Cause type:
By design
Root Cause: On unix, the status « completed » or « aborted » of a job depends of the return code of the last line of the uproc's script.
Example,If the uproc script is:If you kill the process sleep 120, the global status of the uproc will keep on being completed, since there is an exit 0 ( return code = 0).

Environment

OS: All Unix

Resolution

Modify the uproc script in order to return the error code instead of returning exit 0.

Example:
sleep 120
exit $?


Or:
sleep 120

Fix Status: Released

Fix Version(s):
Component: Application.Server
Version: Dollar.Universe 6.6.01

Additional Information

Workaround :
N/A