From 13e4059aeeed3359da1f66b2fd291d0ce9b71199 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Fri, 28 Mar 2008 15:03:57 +0000 Subject: use services::start_service_on_boot --- proxy_wizard/Squid.pm | 2 +- web_wizard/Apache.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy_wizard/Squid.pm b/proxy_wizard/Squid.pm index 5eec68f3..b7ce3ee3 100755 --- a/proxy_wizard/Squid.pm +++ b/proxy_wizard/Squid.pm @@ -236,7 +236,7 @@ sub do_it { if (!services::starts_on_boot('squid')) { my $start_httpd = $in->ask_yesorno(N("Start %s server on boot", "squid"), N("Would you like to start the %s service automatically on every boot?", "squid"), 1); if ($start_httpd) { - run_program::rooted($::prefix, '/sbin/chkconfig', '--level', '345', 'squid', 'on'); + services::start_service_on_boot('squid'); } } my $w = $in->wait_message(N("Squid proxy"), N("Configuring your system as a Proxy server...")); diff --git a/web_wizard/Apache.pm b/web_wizard/Apache.pm index 20077852..30a2e772 100755 --- a/web_wizard/Apache.pm +++ b/web_wizard/Apache.pm @@ -251,7 +251,7 @@ sub do_it { if (!services::starts_on_boot('httpd')) { my $start_httpd = $in->ask_yesorno(N("Start %s server on boot", "httpd"), N("Would you like to start the %s service automatically on every boot?", "httpd"), 1); if ($start_httpd) { - run_program::rooted($::prefix, '/sbin/chkconfig', '--level', '345', 'httpd', 'on'); + services::start_service_on_boot('httpd'); } } my $w = $in->wait_message(N("Apache server"), N("Configuring your system as Apache server ...")); -- cgit v1.2.1