feat: reliability, ops hooks, security checks, daily report
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# Пример для /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
|
||||
}
|
||||
Reference in New Issue
Block a user