> Am 12.02.2019 um 17:02 schrieb Gordon Messmer <gordon.messmer@xxxxxxxxx>: > > On 2/12/19 4:57 AM, Leon Fauster via CentOS wrote: >> I have some cron.d entries that execute scripts in minute intervals and I'm wondering how could an >> "official" way look like, to have a condition to not run cron.d entries when cron.daily scripts are >> running. Sure, I can hack something around file timestamps or so but that feels not so streamlined ... > > > run-parts doesn't look like it produces a lock, so I'd venture that the simplest way would be: > > */5 * * * * root pidof -x run-parts || your-command-here > Thats a nice solution! Pragmatic and more accurate than the path I was on. Thanks! -- LF _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx https://lists.centos.org/mailman/listinfo/centos