[debian-mysql] Bug#864830: mysql-server-5.7: Logrotate config is not quiet causing cron to send email

Arjan Opmeer arjan.opmeer at gmail.com
Thu Jun 15 13:55:00 UTC 2017


Package: mysql-server-5.7
Version: 5.7.18-1
Severity: normal

Dear Maintainer,

The logrotate config of mysql-server contains this test:

   if killall -q -s0 -umysql mysqld; then

However killall unconditionally emits the output "sending signal 0 to
procs". See this source line:

   975   printf("sending signal %d to procs\n", sig_num);

Because lograte is started from the cron.daily cronjob this extra output
causes cron to send email to root.

I believe this issue can be easily fixed by redirecting output to /dev/null
like so:

   if killall -q -s0 -umysql mysqld >/dev/null; then


Thanks,

Arjan



-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages mysql-server-5.7 depends on:
ii  adduser                3.115
ii  bsdutils               1:2.29.2-1
ii  debconf [debconf-2.0]  1.5.61
ii  init-system-helpers    1.48
ii  libatomic1             6.3.0-18
ii  libc6                  2.24-11
ii  libevent-core-2.0-5    2.0.21-stable-3
ii  libgcc1                1:6.3.0-18
ii  liblz4-1               0.0~r131-2+b1
ii  libmecab2              0.996-3.1
ii  libstdc++6             7.1.0-5
ii  lsb-base               9.20161125
ii  mysql-client-5.7       5.7.18-1
ii  mysql-common           5.8+1.0.2
ii  mysql-server-core-5.7  5.7.18-1
ii  passwd                 1:4.4-4.1
ii  perl                   5.24.1-3
ii  psmisc                 23.0-1
ii  zlib1g                 1:1.2.8.dfsg-5

Versions of packages mysql-server-5.7 recommends:
ii  libhtml-template-perl  2.95-2

Versions of packages mysql-server-5.7 suggests:
ii  bsd-mailx [mailx]  8.1.2-0.20160123cvs-4
pn  tinyca             <none>

-- debconf information:
  mysql-server/no_upgrade_when_using_ndb:
  mysql-server-5.7/nis_warning:
  mysql-server/password_mismatch:
  mysql-server-5.7/really_downgrade: false
  mysql-server-5.7/postrm_remove_databases: false
  mysql-server-5.7/start_on_boot: true



More information about the pkg-mysql-maint mailing list