Skip to content

Commit

Permalink
only issue the "already running" error when we ask to start the database
Browse files Browse the repository at this point in the history
  • Loading branch information
jjn1056 committed Feb 28, 2012
1 parent 7fdc069 commit a44b25a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Test/mysqld.pm
Expand Up @@ -62,9 +62,9 @@ sub new {
or return;
$self->mysqld($prog);
}
die 'mysqld is already running (' . $self->my_cnf->{'pid-file'} . ')'
if -e $self->my_cnf->{'pid-file'};
if ($self->auto_start) {
die 'mysqld is already running (' . $self->my_cnf->{'pid-file'} . ')'
if -e $self->my_cnf->{'pid-file'};
$self->setup
if $self->auto_start >= 2;
$self->start;
Expand Down

0 comments on commit a44b25a

Please sign in to comment.