[CentOS] dont run cron.d- when cron.daily-scripts are running

Wed Feb 13 11:29:54 UTC 2019
Leon Fauster <leonfauster at googlemail.com>

> Am 12.02.2019 um 17:02 schrieb Gordon Messmer <gordon.messmer at gmail.com>:
> 
> 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