You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
791 B

26 years ago
26 years ago
  1. # This logname can be set in /etc/my.cnf
  2. # by setting the variable "err-log"
  3. # in the [safe_mysqld] section as follows:
  4. #
  5. # [safe_mysqld]
  6. # err-log=@localstatedir@/mysqld.log
  7. #
  8. # If the root user has a password you have to create a
  9. # /root/.my.cnf configuration file with the following
  10. # content:
  11. #
  12. # [mysqladmin]
  13. # password = <secret>
  14. # user= root
  15. #
  16. # where "<secret>" is the password.
  17. #
  18. # ATTENTION: This /root/.my.cnf should be readable ONLY
  19. # for root !
  20. @localstatedir@/mysqld.log {
  21. # create 600 mysql mysql
  22. notifempty
  23. daily
  24. rotate 3
  25. missingok
  26. compress
  27. postrotate
  28. # just if mysqld is really running
  29. if test -x @bindir@/mysqladmin && \
  30. @bindir@/mysqladmin ping &>/dev/null
  31. then
  32. @bindir@/mysqladmin flush-logs
  33. fi
  34. endscript
  35. }