Skip to content

Commit

Permalink
show error popup when service could not be started (bnc#801677)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Fehr committed Feb 11, 2013
1 parent 5ddce9a commit 689eae0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/IscsiLioServer.ycp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,11 @@ boolean getServiceStatus(){
serviceStatus=true;
}
y2milestone("Service status = %1", statusOnStart);
if (!statusOnStart) Service::Start("target");
if (!statusOnStart)
{
if( !Service::Start("target"))
Popup::Error( _("Could not start service \"/etc/init.d/target\"") );
}
return ret;
}

Expand Down

0 comments on commit 689eae0

Please sign in to comment.