Skip to content

Commit

Permalink
[Monit] Add a comment for the print(...) statement in the script
Browse files Browse the repository at this point in the history
process_checker.

Signed-off-by: Yong Zhao <[email protected]>
  • Loading branch information
yozhao101 committed Sep 23, 2020
1 parent 5558796 commit 875a2a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions files/image_config/monit/process_checker
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def check_process_existence(container_name, process_cmdline):
break

if not is_running:
# If this script is run by Monit, then the following output will be appneded to
# Monit's syslog message.
print("'{}' is not running.".format(process_cmdline))
sys.exit(1)
else:
Expand Down

0 comments on commit 875a2a5

Please sign in to comment.