TritonDataCenter / pkgsrc

NetBSD/pkgsrc fork for our binary package repositories
https://pkgsrc.smartos.org/
131 stars 51 forks source link

mariadb fails to start: configured pid file location does not exist #346

Closed drboone closed 1 year ago

drboone commented 1 year ago

The supplied method script specifies a pid file location in a directory that does not exist, /var/run/mariadb. The method script cannot create the directory because it is already running as mariadb. For mysql, it looks like the approach taken was to place the pid file in /var/mysql, where the daemon does have write access.

drboone commented 1 year ago

Worse and furthermore, the pid file location hard coded in the method script causes mariadb to ignore a pid_file=/x/y directive in its config file.

jperkin commented 1 year ago

Sorry I missed this! Will get it fixed on Monday and backport to 2022Q4.

jperkin commented 1 year ago

Thanks, fixed in 9d5bb663ae7bac198181604cd9dffdbd38a69e15