планирование_выполнения_заданий_в_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
планирование_выполнения_заданий_в_linux [2023/03/03 07:24]
val [Сервис cron]
планирование_выполнения_заданий_в_linux [2026/03/30 07:48] (current)
val
Line 24: Line 24:
  
 */5 * * * * test $(LANG= top -b -n 1 | grep Cpu | cut -d':'​ -f2 | cut -d. -f1) -gt 60 && ( date; ps awux ) >> /​tmp/​ps_cpu_hi.log */5 * * * * test $(LANG= top -b -n 1 | grep Cpu | cut -d':'​ -f2 | cut -d. -f1) -gt 60 && ( date; ps awux ) >> /​tmp/​ps_cpu_hi.log
-</code><​code> +</​code>​ 
-echo -e "​0 ​*/2 * * * \ + 
-/usr/bin/ansible-pull ​-s 90 -U http://​gate:​3000/​student/​ansible-pull-gpo.git\n\ +  ​[[Сервис Ansible#ansible-pull]] 
-@reboot sleep 1m; /​usr/​bin/​ansible-pull -U http://​gate:​3000/​student/​ansible-pull-gpo.git"​ | crontab - + 
-</​code>​<​code>​+<​code>​
 # ls /​var/​spool/​cron/​ # ls /​var/​spool/​cron/​
  
Line 63: Line 63:
 # ls /​var/​spool/​anacron # ls /​var/​spool/​anacron
 </​code>​ </​code>​
 +
 +===== Systemd timers =====
 +
 +  * [[https://​habr.com/​ru/​companies/​ruvds/​articles/​512868/​|Использование таймеров systemd вместо заданий cron]]
 +  * [[Let'​s Encrypt для внутренних сайтов]]
 +
 +
  
планирование_выполнения_заданий_в_linux.1677817468.txt.gz · Last modified: 2023/03/03 07:24 by val