Ставим пакет:
apt-get install -y --force-yes cron-apt
Открываем конфи-файл:
vi /etc/cron-apt/config
Ищем там строку и корректируем следующим образом:
SYSLOGON="always"
Теперь запускаем его вручную:
cron-apt
И смотрим выдачу в syslog:
tail -f /var/log/syslog
Dec 24 09:50:19 localhost cron-apt: Building dependency tree...
Dec 24 09:50:20 localhost cron-apt: CRON-APT LINE: /usr/bin/apt-get dist-upgrade -d -y -o APT::Get::Show-Upgraded=true
Dec 24 09:50:20 localhost cron-apt: Reading package lists...
Dec 24 09:50:20 localhost cron-apt: Building dependency tree...
Dec 24 09:50:20 localhost cron-apt: The following packages will be upgraded:
Dec 24 09:50:20 localhost cron-apt: acpid dnsutils libbind9-0 libdns22 libisc11 libisccc0 libisccfg1 liblwres9
Dec 24 09:50:20 localhost cron-apt: 8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Dec 24 09:50:20 localhost cron-apt: Need to get 0B/1258kB of archives.
Dec 24 09:50:20 localhost cron-apt: After unpacking 0B of additional disk space will be used.
Dec 24 09:50:20 localhost cron-apt: Download complete and in download only mode
Ну вот и все, теперь достаточно на центральном сервере вовремя просматривать и парсить логи :)
No comments :
Post a Comment
Note: only a member of this blog may post a comment.