summaryrefslogtreecommitdiffstats
path: root/web_wizard
diff options
context:
space:
mode:
authorNicolas Vigier <nvigier@mandriva.com>2008-03-25 19:36:52 +0000
committerNicolas Vigier <nvigier@mandriva.com>2008-03-25 19:36:52 +0000
commitc161f288d9f45c0e4b056fd639b73634d98295bd (patch)
treedcd63f99cf91410f0b6732dd135911ad8396d7df /web_wizard
parentac6cd4a48420d73fcb589b9d0266f773ef082460 (diff)
downloaddrakwizard-c161f288d9f45c0e4b056fd639b73634d98295bd.tar
drakwizard-c161f288d9f45c0e4b056fd639b73634d98295bd.tar.gz
drakwizard-c161f288d9f45c0e4b056fd639b73634d98295bd.tar.bz2
drakwizard-c161f288d9f45c0e4b056fd639b73634d98295bd.tar.xz
drakwizard-c161f288d9f45c0e4b056fd639b73634d98295bd.zip
enable httpd service at boot (#39254)
Diffstat (limited to 'web_wizard')
-rwxr-xr-xweb_wizard/Apache.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/web_wizard/Apache.pm b/web_wizard/Apache.pm
index 93504bc2..bae656cc 100755
--- a/web_wizard/Apache.pm
+++ b/web_wizard/Apache.pm
@@ -248,6 +248,12 @@ EOF
sub do_it {
$::testing and return;
my $in = 'interactive'->vnew('su', 'Apache');
+ if (!services::starts_on_boot('httpd')) {
+ my $start_httpd = $in->ask_yesorno(N("Start httpd server on boot"), N("Would you like to start the httpd service automatically on every boot ?"), 1);
+ if ($start_httpd) {
+ run_program::rooted($::prefix, '/sbin/chkconfig', '--level', '345', 'httpd', 'on');
+ }
+ }
my $w = $in->wait_message(N("Apache server"), N("Configuring your system as Apache server ..."));
my $that = "localhost";