summaryrefslogtreecommitdiffstats
path: root/dhcp_wizard
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-17 17:18:40 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-17 17:18:40 +0000
commit108c9ad989aeeff143bebf230946a50ae5e8ae3e (patch)
tree2a9a4074cb511ed13987785ecd9bdfa42a8b8361 /dhcp_wizard
parent32be07bcf5253e7f321dccd2efd40b5fffb1011c (diff)
downloaddrakwizard-108c9ad989aeeff143bebf230946a50ae5e8ae3e.tar
drakwizard-108c9ad989aeeff143bebf230946a50ae5e8ae3e.tar.gz
drakwizard-108c9ad989aeeff143bebf230946a50ae5e8ae3e.tar.bz2
drakwizard-108c9ad989aeeff143bebf230946a50ae5e8ae3e.tar.xz
drakwizard-108c9ad989aeeff143bebf230946a50ae5e8ae3e.zip
do not reinvent services::restart_or_start()
Diffstat (limited to 'dhcp_wizard')
-rwxr-xr-xdhcp_wizard/Dhcp.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/dhcp_wizard/Dhcp.pm b/dhcp_wizard/Dhcp.pm
index 526aac54..72a413f1 100755
--- a/dhcp_wizard/Dhcp.pm
+++ b/dhcp_wizard/Dhcp.pm
@@ -266,11 +266,7 @@ mask = $wiz_ip_netmask, rng1 = $wiz_ip_range1, rng2 = $wiz_ip_range2, dname = $w
s/#\s+doption routers.*//;
} "/etc/dhcpd.conf";
- if (services::is_service_running('dhcpd')) {
- services::restart('dhcpd');
- } else {
- services::start('dhcpd');
- }
+ services::restart_or_start('dhcpd');
check_started('dhcpd');
}