summaryrefslogtreecommitdiff
blob: ec3b115afa4f04a17cfd6e50412ef9c306d55959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff -urN awstats-6.3.orig/tools/awstats_configure.pl awstats-6.3/tools/awstats_configure.pl
--- awstats-6.3.orig/tools/awstats_configure.pl	2005-01-24 09:28:43.980923725 -0500
+++ awstats-6.3/tools/awstats_configure.pl	2005-01-24 09:28:52.034571769 -0500
@@ -658,13 +658,27 @@
     		print "\n-----> Restart Web server with '$command'\n";
 	 	    my $ret=`$command`;
 	 	    print "$ret";
+	} elsif (-f "/etc/gentoo-release") {
+	    my $command;
+	    if (-x "/usr/sbin/apache2ctl") {
+		$command="/usr/sbin/apache2ctl graceful";
+	    } elsif (-x "/usr/sbin/apachectl") {
+		$command="/usr/sbin/apachectl graceful";
+	    } else {
+       		print "\n-----> Don't forget to restart manually your web server\n";
+	    }
+	    if ($command != "") {
+		print "\n-----> Restart Web server with '$command'\n";
+		my $ret=`$command`;
+		print "$ret";
+	    }
         } elsif (-x "/sbin/service") {
             # We are not on debian
        	 	my $command="/sbin/service httpd restart";
     		print "\n-----> Restart Web server with '$command'\n";
 	 	    my $ret=`$command`;
 	 	    print "$ret";
-   	 	} else {
+		} else {
        		print "\n-----> Don't forget to restart manually your web server\n";
         }
 	}