Rex - cron - overwrite issue

10 views
Skip to first unread message

Tom

unread,
Sep 28, 2021, 8:34:12 AM9/28/21
to Rex Users
Hi,
I am trying to write job for crontab but when I do any changes in entry below I does not remove previous one - just adds new. 

cron_entry "display_on",                                
        ensure        => "present",                       
        command       => $display_on_command,             
        minute        => "0",                             
        hour          => "9",                             
        month         => "*",                             
        day_of_week   => "1-5",                           
        day_of_month  => "*",                             
        user          => "pi",                            
        on_change     => sub {                            
                              say "Cron job display_on added";  };   

My question is:
"Is it possible to overwrite existing cron entry with new ?"

Thank you in advance with any suggestions.

Kind regards,
Tom

Paulo Graça

unread,
Jan 13, 2022, 8:19:44 AM1/13/22
to Rex Users
Hi Tom,

I've worked in a module to address Crontab configuration:

But I'm having several issues registering myself in services like PAUSE or PrePAN to start making it available public wide.
Reply all
Reply to author
Forward
0 new messages