https://howfixnonatech.pages.dev/posts/how-to-create-a-semaphore-in-bash/
How To Create A Semaphore In Bash