[MDEV-11884] Logrotate fails if mysqld is not running (logrotate_script: 3: [: /var/run/mysqld/mysqld.pid: unexpected operator) Created: 2017-01-23 Updated: 2020-05-21 Resolved: 2017-04-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Configuration, Platform Debian |
| Affects Version/s: | 10.0, 10.1 |
| Fix Version/s: | 10.1.22 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Otto Kekäläinen | Assignee: | Otto Kekäläinen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=830976
|
| Comments |
| Comment by OndÅ™ej Surý (Inactive) [ 2017-04-29 ] | ||
|
This has been fixed in Debian 10.1.22-1 version of the package. | ||
| Comment by Ovidiu [ 2018-05-15 ] | ||
|
Sorry for commenting on an older thread but I have a Debian server where I replaced MYSQL server with MariaDB and since then I continuously get error messages from logrotate. I am running the following up-to-date versions
I'm unsure how to fix this error. Can someone help me out here?
| ||
| Comment by kiba [ 2018-06-07 ] | ||
|
Same here, I'm on:
workaround is just add -m1 argument to grep:
| ||
| Comment by Pablo Catalina [ 2019-10-24 ] | ||
|
The fix implemented in Debian is not a proper solution, as the process will use the latest definition of a variable. So the 1st instance in /etc/mysql/my.cnf will be overwritten with the second instance in /etc/mysql/mariadb.conf.d/50-server.cnf. Or, potentially in other custom definitions of the variable. It is better to use:
| ||
| Comment by Pablo Catalina [ 2019-10-24 ] | ||
|
Fix on pull request: |