Service Manager ends with return code 0 when filename or path are incorrect

book

Article ID: 208085

calendar_today

Updated On:

Products

CA Automic One Automation

Issue/Introduction

If the path or filename are incorrect, when starting a process on the linux operating system that has an incorrect path or filename, the process ends with returncode 0 instead of an expected failure code:

20210204/172810.955 - U00022004 Starting process 'UNIX01' ...
20210204/172810.955 - U00022005 ... with command line '/opt/Automic/Automation.Platform/ServiceManager/bin/./../../Agents/unix//bin/ucxjlx3_wrong'.
20210204/172810.955 - U00022006 ... and start directory '/opt/Automic/Automation.Platform/ServiceManager/bin/./../../Agents/unix/bin'.
20210204/172810.956 - U00022007 Process 'UNIX01' (ID '190266') successfully started.
20210204/172810.956 - U00022012 Process 'UNIX01' (ID '190266') ended.
20210204/172810.956 - U00022022 Process 'UNIX01' ended, exit code='0'.

Cause

Order of internal operations on linux due to forking versus starting the process directly.

Environment

Release : 12.3

Component : AUTOMATION ENGINE

Resolution

This behavior will be improved in future versions.