[MDEV-11052] mariadb-service-convert does not work after upgrading to 10.1.18 Created: 2016-10-13  Updated: 2016-12-06  Resolved: 2016-12-06

Status: Closed
Project: MariaDB Server
Component/s: Scripts & Clients
Affects Version/s: 10.1.18
Fix Version/s: 10.1.20

Type: Bug Priority: Major
Reporter: Richard Lane Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None


 Description   

Have the following in my /etc/my.cnf.d/server.cnf file:
[mysqld_safe]
syslog

After installing 10.1.18, mariadb-service-convert does not produce any output.
Found that ". /usr/bin/mysqld_safe --dry-run" was hanging.
Added set -x at front of mysqld_safe and it hands on exec's closing stderr and stdout.
I don't think stdout should be closed when it is called with --dry-run from mariadb-service-convert.

...
++ dry_run=1
++ '[' -n '' ']'
++ for dir in lib64/mysql/plugin lib64/plugin lib/mysql/plugin lib/plugin
++ '[' -d /usr/lib64/mysql/plugin ']'
++ plugin_dir=/usr/lib64/mysql/plugin
++ break
++ '[' -z /usr/lib64/mysql/plugin ']'
++ plugin_dir=/usr/lib64/mysql/plugin
++ '[' 1 -eq 1 ']'
++ my_which logger
++ '[' 0 -ne 0 ']'
++ '[' 0 -eq 1 ']'
++ '[' -n '' -o 1 -eq 0 ']'
++ '[' -n '' ']'
++ log_notice 'Logging to syslog.'
++ log_generic daemon.notice 'Logging to syslog.'
++ '[' 1 -eq 1 ']'
++ return
++ logging=syslog
++ exec
++ exec


Generated at Thu Feb 08 07:46:56 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.