keep-one-running

run just one instance of a command and its args at a time

Ubuntu
RUN apt-get update && \ apt-get install -y run-one
click the source code to copy install keep-one-running on any operating system with command-not-found.com