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

Document ID : KB000087033
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
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
Environment:
OS: All Unix
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).
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