Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 681762 - dev-db/mariadb-10.2.22-r1 - /etc/init.d/mysql should create PID file through --make-pidfile
Summary: dev-db/mariadb-10.2.22-r1 - /etc/init.d/mysql should create PID file through ...
Status: RESOLVED OBSOLETE
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-03-25 19:58 UTC by nic
Modified: 2019-12-17 17:13 UTC (History)
1 user (show)

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 nic 2019-03-25 19:58:33 UTC
openrc status dev-db/mariadb-10.2.22-r1 indicates it crashed. There is no longer a pid file created.


# /etc/init.d/mysql status
 * status: crashed

# cat /var/run/mysqld/mariadb.pid
cat: /var/run/mysqld/mariadb.pid: No such file or directory



I noticed "--make-pidfile" was removed from the init.d script. Adding that back corrected the problem.



I suspect the issue must really with package dev-db/mysql-init-scripts-2.3 ?
Comment 1 Brian Evans (RETIRED) gentoo-dev 2019-03-25 20:10:27 UTC
Did you convert any custom MariaDB config from my.cnf to a file in /etc/mysql/mariadb.d?  It is required that accept the new my.cnf in dispatch-conf after that is done.

This is mentioned in the post-install notes
Comment 2 Brian Evans (RETIRED) gentoo-dev 2019-03-25 20:11:18 UTC
FWIW, --make-pidfile has not been in the OpenRC scripts in recent history, if at all
Comment 3 nic 2019-03-26 15:26:39 UTC
Correct. We successfully migrated our configurations to /etc/mysql/mariadb.d/ -- our configs have been added to files name 90-local-server.cnf on the respective master and slave instances. That all is working great ;)

These servers were initially built about a year or so ago. This weeks emerge world triggered an update to /etc/init.d/mysql for us -- did not occur when we upgrade packages last month.

I will do some more checking on our to determine if we can identified where that make-pidfile originated from. Interesting.


I guess what I should be concerned about why this isn't creating the appropriate pid file without that parameter.

Thank you
Comment 4 nic 2019-12-17 17:13:36 UTC
This adjustment is no longer needed with dev-db/mariadb-10.2.29