Loading
Any more info on snowcron?

Info from Snow on snowcron job is a little sparse, I owlud like to know a bit more on how to set for example siohwscron.conf -

 

default is 0 17 * * *

can we add for example delay the cronjob 15 min if the server is rebooted. Tested the reboot of server at 17:00 and the snow cronjob starts immediately after the server came online and that would results in failed scan.

 


  • Hi,

     

    you can use this bash to configure sleep $((RANDOM % 60 + 1))m

     

    RANDOM : A special Bash variable that generates a random integer between 0 and 32767.

    % 60 : This computes the remainder when the random number is divided by 60, effectively generating a random number in the range 0–59.

    + 1 : Adding 1 ensures the range is shifted from 0–59 to 1–60.

    sleep ...m : The sleep command pauses execution. The m suffix makes the sleep duration interpreted as minutes.

     

    The snowcron script | Snow product documentation

     

    Expand Post

Loading
Any more info on snowcron?