__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# Flush all mysql server logs together using mysqladmin flush-logs.
# mysqld must be active for the script to run successfully.
/var/log/mysql.log /var/log/mysql/*log {
daily
rotate 7
missingok
create 640 mysql adm
su mysql adm
compress
sharedscripts
postrotate
# Confirm that the mysql service is running and that mysqladmin
# exists as it is needed for flushing logs. If not, ignore this
# rotation as mysql-server has likely been removed or is inactive.
systemctl is-active --quiet mysql || exit 0
test -x /usr/bin/mysqladmin || exit 0
# Run mysqladmin using the debian.cnf configuration to rotate logs.
MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf"
# Ping mysqld to confirm it is responsive, which is required for flushing.
$MYADMIN ping >/dev/null 2>&1
PING_STATUS_CODE=$?
if [ "${PING_STATUS_CODE}" -eq "0" ]; then
# Flush all server logs.
$MYADMIN flush-logs
else
# The server is down, or debian.cnf is bad. Return error to show
# that the logs could not be flushed.
exit 1
fi
endscript
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| alternatives | File | 120 B | 0644 |
|
| apache2 | File | 397 B | 0644 |
|
| apport | File | 126 B | 0644 |
|
| apt | File | 173 B | 0644 |
|
| bootlog | File | 91 B | 0644 |
|
| btmp | File | 130 B | 0644 |
|
| cloud-init-base | File | 144 B | 0644 |
|
| cups-daemon | File | 181 B | 0644 |
|
| dbconfig-common | File | 107 B | 0644 |
|
| dpkg | File | 112 B | 0644 |
|
| mysql-server | File | 1.05 KB | 0644 |
|
| ppp | File | 94 B | 0644 |
|
| rsyslog | File | 248 B | 0644 |
|
| sane-utils | File | 132 B | 0644 |
|
| speech-dispatcher | File | 677 B | 0644 |
|
| sssd-common | File | 174 B | 0644 |
|
| ubuntu-pro-client | File | 270 B | 0644 |
|
| ufw | File | 209 B | 0644 |
|
| unattended-upgrades | File | 235 B | 0644 |
|
| vsftpd | File | 126 B | 0644 |
|
| wtmp | File | 145 B | 0644 |
|