There is a slight problem in stopping the script,the version is Percona-Server-5.7.20-18-Linux.x86_64.ssl101

Bug #1738742 reported by WangTuo on 2017-12-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.5
Invalid
Undecided
Unassigned
5.6
Invalid
Undecided
Unassigned
5.7
Fix Released
High
EvgeniyPatlan

Bug Description

When I use the script command to stop the MySQL service, I hint the following information
/etc/init.d/mysql57 stop
Shutting down MySQL (Percona Server)../webser/mysql57/bin/mysqld_safe: line 218: [: -gt: unary operator expected
The version I used is
version:Percona Server for MySQL 5.7.20-18(Percona-Server-5.7.20-18-Linux.x86_64.ssl101)
SoftWare:Linux-Generic
The previous version(Percona-Server-5.7.19-17-Linux.x86_64.ssl101.tar.gz) did not have this problem
I saw that the 218 line of the ret variable in the mysqld_safe script was not defined by the definition.
  #echo "Running mysqld: [$cmd]"
  eval "$cmd"
  if [ $ret -gt 0 ] && [ $ret -lt 128 ]; then
    exit $ret
  fi

tags: added: pkg
tags: added: regression

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-277

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers