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 --- web_wizard/Apache.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web_wizard') 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