20 lines
627 B
Plaintext
20 lines
627 B
Plaintext
# Пример для /etc/logrotate.d/ssh-monitor
|
|
# Установка: sudo cp contrib/logrotate.d/ssh-monitor /etc/logrotate.d/ssh-monitor
|
|
# Пути должны совпадать с LOG_FILE и WATCHDOG_LOG_FILE в /etc/ssh-monitor.conf
|
|
|
|
/var/log/ssh_monitor.log
|
|
/var/log/ssh_monitor_watchdog.log {
|
|
weekly
|
|
rotate 12
|
|
compress
|
|
delaycompress
|
|
missingok
|
|
notifempty
|
|
create 0640 root root
|
|
sharedscripts
|
|
postrotate
|
|
# При необходимости отправьте сигнал процессу (если добавите обработку HUP)
|
|
/bin/true
|
|
endscript
|
|
}
|