Skip to content
Browse files

only issue the "already running" error when we ask to start the database

  • Loading branch information...
1 parent 7fdc069 commit a44b25ac5a00071c885a572e969c316d8d54197d @jjn1056 jjn1056 committed Feb 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Test/mysqld.pm
View
4 lib/Test/mysqld.pm
@@ -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;

0 comments on commit a44b25a

Please sign in to comment.
Something went wrong with that request. Please try again.