Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678272 - dev-db/mariadb-10.2 with dev-db/mysql-init-scripts: logrotate checks for pid in non-existing location
Summary: dev-db/mariadb-10.2 with dev-db/mysql-init-scripts: logrotate checks for pid ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-18 05:31 UTC by Tomáš Mózes
Modified: 2019-03-06 08:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Mózes 2019-02-18 05:31:55 UTC
/etc/mysql/mariadb.d/50-distro-server.cnf:
pid-file = /var/run/mysqld/mariadb.pid

/etc/logrotate.d/mysql:
postrotate
[ -f /var/run/mysqld/mysqld.pid ] && /bin/kill -HUP `cat /var/run/mysqld/mysqld.pid`
endscript

Logrotate then fails with:
error: error running shared postrotate script for '/var/log/mysql/mysql.err /var/log/mysql/mysql.log /var/log/mysql/mysqld.err '
run-parts: /etc/cron.daily/logrotate exited with return code 1
Comment 1 Larry the Git Cow gentoo-dev 2019-03-05 21:28:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29f98d49b8679417fe873aefb9182a43f2bafca4

commit 29f98d49b8679417fe873aefb9182a43f2bafca4
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2019-03-05 21:27:48 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2019-03-05 21:27:48 +0000

    dev-db/mysql-init-scripts: Fix up pid file searching
    
    Changed how the pid file is searched for in both logrotate and init
    
    Closes: https://bugs.gentoo.org/677396
    Closes: https://bugs.gentoo.org/678272
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Brian Evans <grknight@gentoo.org>

 dev-db/mysql-init-scripts/files/init.d-2.3         | 194 +++++++++++++++++++++
 dev-db/mysql-init-scripts/files/init.d-s6-2.3      | 163 +++++++++++++++++
 .../mysql-init-scripts/files/init.d-supervise-2.3  | 180 +++++++++++++++++++
 .../mysql-init-scripts/files/logrotate.mysql-2.3   |  14 ++
 .../mysql-init-scripts-2.3.ebuild                  |  67 +++++++
 5 files changed, 618 insertions(+)
Comment 2 Tomáš Mózes 2019-03-06 08:58:51 UTC
Thanks, seems good :)