Guest User

Untitled

a guest
May 26th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #!/bin/bash
  2. # Run the given script, exit immediately if another instance is already running. Convenient for cron tasks.
  3. /usr/bin/flock -n /var/lock/your-lock-name your-app-cli
Add Comment
Please, Sign In to add comment