[SOLVED] sys-process/vixie-cron-4.1-r15
Com-P 11 октября, 2019 - 23:49
Доброго времени суток, сегодня обновлял генту, как оказалось "The following unavailable installed packages were found sys-process/vixie-cron-4.1-r15" т.е. он больше не поддерживается?
Кто что использует в качестве замены?
»
- Для комментирования войдите или зарегистрируйтесь

cronie
sys-process/cronie
Описание: Cronie is a standard UNIX daemon cron based on the original vixie-cron
Спасибо, вроде работает)))
Спасибо, вроде работает)))
Пытаюсь перенаправить логи в
Пытаюсь перенаправить логи в /var/log/cron через syslog-ng, но все равно часть остается в messages.
Делаю вот как:
destination crond { file("/var/log/cron"); }; filter f_cron { message("cron") and message("CROND"); }; filter f_crond { program("cron") and program("crond"); }; log { source(src); filter(f_cron); destination(crond); flags(final); }; log { source(src); filter(f_crond); destination(crond); flags(final); };Что я делаю не так?
Полный syslog-ng.conf
# @version: 3.22 @include "scl.conf" options { threaded(yes); chain_hostnames(no); stats_freq(43200); mark_freq(3600); }; source src { system(); internal(); }; destination crond { file("/var/log/cron"); }; destination dhcpd { file("/var/log/dhcpd.log"); }; destination pppd { file("/var/log/pppd.log"); }; destination mail { file("/var/log/mail.log"); }; destination messages { file("/var/log/messages"); }; # By default messages are logged to tty12... destination console_all { file("/dev/tty12"); }; # ...if you intend to use /dev/console for programs like xconsole # you can comment out the destination line above that references /dev/tty12 # and uncomment the line below. #destination console_all { file("/dev/console"); }; filter f_cron { message("cron") and message("CROND"); }; filter f_crond { program("cron") and program("crond"); }; filter f_dhcpd { program("dhcpd") or program ("dhcpd"); }; filter f_mail { facility("mail"); }; filter f_notmail { not facility("mail"); }; filter f_ppp { program("pppd") or program ("pptpd"); }; filter f_pppspam {message("ppp0") or message ("mppe_compress"); }; filter f_syslog {message('syslog-ng'); }; log { source(src); filter(f_cron); destination(crond); flags(final); }; log { source(src); filter(f_crond); destination(crond); flags(final); }; log { source(src); filter(f_dhcpd); destination(dhcpd); flags(final); }; log { source(src); filter(f_syslog); destination(messages); flags(final); }; log { source(src); filter(f_ppp); destination(pppd); flags(final); }; log { source(src); filter(f_pppspam); destination(pppd); flags(final); }; log { source(src); filter(f_mail); destination(mail); }; log { source(src); filter(f_notmail); destination(messages); }; #log { source(src); destination(messages); }; log { source(src); destination(console_all); };?
Почему фильтруешь не по facility?
filter f_cron { facility(cron); };:wq
--
Live free or die
Спасибо, помогло)))
Спасибо, помогло)))
!
Это не ответ на вопрос «почему?»!
☺
:wq
--
Live free or die
facility не всегда
facility не всегда срабатывает, бывает выдает ошибки, либо я не до конца понял как её использовать.