Skip to content

Commit

Permalink
Use service for shutting down and starting mysql.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Jan 7, 2012
1 parent 58f35c3 commit a44d812
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions wre/lib/WRE/Mysql.pm
Expand Up @@ -209,8 +209,7 @@ sub start {
my $count = 0;
my $success = 0;
my $config = $self->wreConfig;
my $host = WRE::Host->new(wreConfig => $config);
my $cmd = "mysql.server start --user=".$config->get("user");
my $cmd = "service mysql start";
`$cmd`; # catch command line output
while ($count < 10 && $success == 0) {
sleep(1);
Expand Down Expand Up @@ -238,8 +237,7 @@ sub stop {
my $count = 0;
my $success = 1;
my $config = $self->wreConfig;
my $host = WRE::Host->new(wreConfig => $config);
my $cmd = "mysql.server stop";
my $cmd = "service mysql stop";
`$cmd`; # catch command line output
while ($count < 10 && $success == 1) {
sleep(1);
Expand Down

0 comments on commit a44d812

Please sign in to comment.