I'm run a script with cron:*/10 * * * * flock -n /tmp/lock scriptI have to make sure that only one instance of the script is running at the same time, and for that I'm using flock. The problem is that sometimes this script starts a daemon, in this case, the daemon blocks the following script executions. I know a possible solution would be unlock the file at the end of the script, but is it possible do it directly in the cron command?
Lock a script starting daemons
cron;daemon;lock