mirror of
https://github.com/ookangzheng/blahdns.git
synced 2025-12-15 13:45:37 +07:00
15 lines
234 B
Bash
Executable File
15 lines
234 B
Bash
Executable File
## Cronjob every 6 hours clear logs and restart services
|
|
|
|
cd /var/log
|
|
|
|
rm -rf haproxy.log*
|
|
rm -rf daemon.log*
|
|
rm -rf messages*
|
|
rm -rf syslog*
|
|
rm -rf user*
|
|
rm -rf kern*
|
|
rm -rf debug*
|
|
|
|
service haproxy restart
|
|
service doh-server restart
|