summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <nvigier@mandriva.com>2008-03-28 15:03:57 +0000
committerNicolas Vigier <nvigier@mandriva.com>2008-03-28 15:03:57 +0000
commit13e4059aeeed3359da1f66b2fd291d0ce9b71199 (patch)
tree317596552a5e758908511503752b5684bfc38f0b
parentc73f809c62190261677cc92e63213f9046acf66b (diff)
downloaddrakwizard-13e4059aeeed3359da1f66b2fd291d0ce9b71199.tar
drakwizard-13e4059aeeed3359da1f66b2fd291d0ce9b71199.tar.gz
drakwizard-13e4059aeeed3359da1f66b2fd291d0ce9b71199.tar.bz2
drakwizard-13e4059aeeed3359da1f66b2fd291d0ce9b71199.tar.xz
drakwizard-13e4059aeeed3359da1f66b2fd291d0ce9b71199.zip
use services::start_service_on_boot
-rwxr-xr-xproxy_wizard/Squid.pm2
-rwxr-xr-xweb_wizard/Apache.pm2
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 ..."));