You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The shell script /usr/local/bin/os_patching_fact_generation.sh has a lock file, which is fine, but it needs to have trap statements to "cleanly" exit if, for example, the machine is rebooted while it happens to be running.
The text was updated successfully, but these errors were encountered:
TJM
changed the title
Cron: Locked, Exiting - Need trap(s) if we have a lockfile (/usr/local/bin/os_patching_fact_generation.sh)
Locked, Exiting - Need trap(s) if we have a lockfile (/usr/local/bin/os_patching_fact_generation.sh)
Sep 14, 2018
The shell script
/usr/local/bin/os_patching_fact_generation.sh
has a lock file, which is fine, but it needs to havetrap
statements to "cleanly" exit if, for example, the machine is rebooted while it happens to be running.https://stackoverflow.com/questions/1715137/what-is-the-best-way-to-ensure-only-one-instance-of-a-bash-script-is-running
maybe something like:
added right near the top somewhere?
The text was updated successfully, but these errors were encountered: