This shows you the differences between two versions of the page.
cron_crontab_settings [2014/01/29 18:04] |
cron_crontab_settings [2014/01/29 18:04] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Cron Settings ====== | ||
+ | |||
+ | Crontab | ||
+ | |||
+ | If you see notine "check crontab" | ||
+ | It should be like | ||
+ | |||
+ | copy from here: */1 * * * * cd / | ||
+ | |||
+ | If you use internal thumbs rotation engine also all this | ||
+ | |||
+ | copy from here: */1 * * * * cd / | ||
+ | |||
+ | ===== If you havea lot of domains at one server ===== | ||
+ | |||
+ | it's a good idea to spread load across a minute. Create file scj.sh and add there all tasks **( without * and with & at the end )** for example | ||
+ | |||
+ | < | ||
+ | cd / | ||
+ | sleep 2 | ||
+ | cd / | ||
+ | </ | ||
+ | |||
+ | Change sleeptime so all of your tasks are executed within 1 minute, it's important. | ||
+ | |||
+ | and add this file to crontab | ||
+ | |||
+ | < | ||
+ | */1 * * * * cd / | ||
+ | </ | ||
+ | |||
+ | |||
+ | **NOTE** total amount of sleep seconds should be less then 59, if you have more lines - add sleeps each 2 lines for example. | ||