Skip to content

Commit 5a7d5fb

Browse files
committed
Stop error from occurring if the file does not exist
1 parent e128633 commit 5a7d5fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbooks/aws-parallelcluster-computefleet/files/check_update/check-update.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Description=Check for recent file modifications
33

44
[Service]
55
Type=oneshot
6-
ExecStart=/bin/bash -c 'cat /opt/slurm/etc/pcluster/.slurm_plugin/clustermgtd_heartbeat'
6+
ExecStart=/bin/bash -c 'cat /opt/slurm/etc/pcluster/.slurm_plugin/clustermgtd_heartbeat 2>/dev/null || echo 'File does not exists' && true'
77

88
[Install]
99
WantedBy=multi-user.target

0 commit comments

Comments
 (0)