tags 297404 confirmed tags 297404 patch thanks hi vineet,
attached is a patch that i believe fixes this the cronjob and logrotate by having them silently exit if mysqladmin doesn't exit. i'll wait to hear from christian about whether or not the patch is acceptable or needs to be redone before the next upload. sean --
Index: mysql-server.logrotate =================================================================== --- mysql-server.logrotate (revision 27) +++ mysql-server.logrotate (working copy) @@ -15,7 +15,9 @@ # If this fails, check debian.conf! export HOME=/etc/mysql/my.cnf MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf" - if [ -z "`$MYADMIN ping 2>/dev/null`" ]; then + if [ ! -x "/usr/bin/mysqladmin" ]; then + exit 0 + elif [ -z "`$MYADMIN ping 2>/dev/null`" ]; then # Really no mysqld or rather a missing debian-sys-maint user? # If this occurs and is not a error please report a bug. if ps cax | grep -q mysqld; then Index: mysql-server.cron.daily =================================================================== --- mysql-server.cron.daily (revision 27) +++ mysql-server.cron.daily (working copy) @@ -20,6 +20,11 @@ exit $1 } +# we need mysqladmin, so if it doesn't exist, silently exit +if [ ! -x "/usr/bin/mysqladmin" ]; then + my_exit 0 +fi + # Read config and see if we should rotate at all. . /etc/mysql/debian-log-rotate.conf if [ "$KEEP_BINARY_LOGS" -eq 0 ]; then
signature.asc
Description: Digital signature