[MacPorts] #40018: Error in mysqld_safe script prevents startup

MacPorts noreply at macports.org
Wed Aug 7 02:06:28 PDT 2013


#40018: Error in mysqld_safe script prevents startup
----------------------------+---------------------
  Reporter:  modemmonkey@…  |      Owner:  quest@…
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.2.0
Resolution:                 |   Keywords:
      Port:  percona        |
----------------------------+---------------------

Comment (by pc@…):

 I've changed the code at line 723 from


  {{{
 if kill -0 $PID > /dev/null 2> /dev/null
   then
     if
     then    # The pid contains a mysqld process
       log_error "A mysqld process already exists"
       exit 1
     fi
   fi
 }}}
 to
 {{{
   if kill -0 $PID > /dev/null 2> /dev/null
   then
     if ps -ef | grep -v mysqld_safe | grep -- $MYSQLD | grep $PID >
 /dev/null
     then    # The pid contains a mysqld process
       log_error "A mysqld process already exists"
       exit 1
     fi
   fi
 }}}

 The ps line was taken from the previous release.

-- 
Ticket URL: <https://trac.macports.org/ticket/40018#comment:2>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list