I am running Ubuntu Linux 16.10 on an Ubuntu ThinkStation desktop.I used a bash script just now to restart and stop mono-service on our second Ubuntu Linux 16.04 desktop computer in the following manner:mono-service -l:${LOCK_FILE} ./${PROGRAM_NAME}.exe &How do we programatically tell if our bash script was succesful in startingor stopping mono-service -l:${LOCK_FILE} ./${PROGRAM_NAME}.exe? We know that if one runs ps aux , they can observe if the bash script was succesful in starting or stopping mono-service. But, that isnot an programmatic solution. Any help is greatly appreciated.
How do we programatically tell if our bash script was succesful in starting or stopping mono-service -l:${LOCK_FILE} ./${PROGRAM_NAME}.exe?
ubuntu;process;mono