Skip to content

Commit

Permalink
Remove logic for enable/disable the service from Perl module
Browse files Browse the repository at this point in the history
Because from now on it will be managed by Yast2::SystemService class.
  • Loading branch information
dgdavid committed Jul 31, 2018
1 parent 59a849c commit a341baf
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/modules/DhcpServer.pm
Expand Up @@ -1745,33 +1745,6 @@ sub Write {
SCR->Write (".sysconfig.dhcpd.DHCPD_INTERFACE", $ifaces_list);
SCR->Write (".sysconfig.dhcpd.DHCPD_OTHER_ARGS", $other_options);
SCR->Write (".sysconfig.dhcpd", undef);


if ($start_service)
{
y2milestone ("Enabling the DHCP service");
my $ret = 1;
if (! $write_only)
{
$ret = Service->Restart ($SERVICE);
}
Service->Enable ($SERVICE);
if (!$ret)
{
# error report
Report->Error (__("Error occurred while restarting the DHCP daemon."));
$ok = 0;
}
}
else
{
y2milestone ("Disabling the DHCP service");
if (! $write_only)
{
Service->Stop ($SERVICE);
}
Service->Disable ($SERVICE);
}

Progress->NextStage ();

Expand Down

0 comments on commit a341baf

Please sign in to comment.