Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. /var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log {
  2. daily
  3. rotate 7
  4. missingok
  5. create 640 mysql adm
  6. compress
  7. sharedscripts
  8. postrotate
  9. test -x /usr/bin/mysqladmin || exit 0
  10. # If this fails, check debian.conf!
  11. MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf"
  12. if [ -z "`$MYADMIN ping 2>/dev/null`" ]; then
  13. # Really no mysqld or rather a missing debian-sys-maint user?
  14. # If this occurs and is not a error please report a bug.
  15. #if ps cax | grep -q mysqld; then
  16. if killall -q -s0 -umysql mysqld; then
  17. exit 1
  18. fi
  19. else
  20. $MYADMIN flush-logs
  21. fi
  22. endscript
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement