From 0bf613f789fff80c32f9351ef3265c1e90f9bec0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Wed, 26 Mar 2008 10:37:11 +0000 Subject: enable squid on boot (#39254) --- proxy_wizard/Squid.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'proxy_wizard/Squid.pm') diff --git a/proxy_wizard/Squid.pm b/proxy_wizard/Squid.pm index 107b8902..801e9e7c 100755 --- a/proxy_wizard/Squid.pm +++ b/proxy_wizard/Squid.pm @@ -233,6 +233,12 @@ sub port { sub do_it { $::testing and return; my $in = 'interactive'->vnew('su', 'Squid Config'); + if (!services::starts_on_boot('squid')) { + my $start_httpd = $in->ask_yesorno(N("Start squid server on boot"), N("Would you like to start the squid service automatically on every boot ?"), 1); + if ($start_httpd) { + run_program::rooted($::prefix, '/sbin/chkconfig', '--level', '345', 'squid', 'on'); + } + } my $w = $in->wait_message(N("Squid proxy"), N("Configuring your system as a Proxy server...")); my $file="/etc/squid/squid.conf"; -f $file and MDK::Common::cp_af($file, $file.".orig"); -- cgit v1.2.1