https://bugzilla.novell.com/show_bug.cgi?id=789263 https://bugzilla.novell.com/show_bug.cgi?id=789263#c0 Summary: openSUSE:12.2/mysql-community-server: Bug in init.d script cause logrotate failure Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: 3rd party software AssignedTo: mhrusecky@suse.com ReportedBy: archie@dellroad.org QAContact: opensuse-communityscreening@forge.provo.novell.com Found By: --- Blocker: --- mysql-community-server-5.5.25a-1.2.1.x86_64 In /etc/init.d/mysql we see this: # Creating parent directories for logs for i in "$log_upgrade" "$log_query" "$log_error"; do log_dir="`dirname "$i"`" if [ \! -d "$log_dir" ]; then mkdir -p "$log_dir" chmod 660 "$log_dir" fi done The bug is in the line "chmod 660 $log_dir". That should be "chmod 770 $log_dir". This eventually leads to the following warning in syslog: logrotate: ALERT exited abnormally with [1] logrotate: ^G/usr/bin/mysqladmin: refresh failed; error: 'Unknown error' logrotate: /logrotate.d/mysql failed, probably because logrotate: the root acount is protected by password. logrotate: See comments in /logrotate.d/mysql on how to fix this logrotate: error: error running non-shared postrotate script for /var/log/mysql/mysqld.log of '/var/log/mysql/mysqld.log ' -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.