Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/apache:master commit in: 2.2/init/
Date: Sat, 09 Nov 2013 15:33:02
Message-Id: 1230817778.f93adbd97e960fe8cc233e58fe5b41bcc38083c3.polynomial-c@gentoo
1 commit: f93adbd97e960fe8cc233e58fe5b41bcc38083c3
2 Author: Benedikt Boehm <hollow <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 1 13:49:38 2009 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 1 13:49:38 2009 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/apache.git;a=commit;h=f93adbd9
7
8 add init script action to list virtual hosts, #252194
9
10 ---
11 2.2/init/apache2.initd | 7 ++++++-
12 1 file changed, 6 insertions(+), 1 deletion(-)
13
14 diff --git a/2.2/init/apache2.initd b/2.2/init/apache2.initd
15 index 5c6f959..5eaf675 100755
16 --- a/2.2/init/apache2.initd
17 +++ b/2.2/init/apache2.initd
18 @@ -2,7 +2,7 @@
19 # Copyright 1999-2007 Gentoo Foundation
20 # Distributed under the terms of the GNU General Public License v2
21
22 -opts="configdump configtest fullstatus graceful gracefulstop modules reload"
23 +opts="configdump configtest fullstatus graceful gracefulstop modules reload virtualhosts"
24
25 depend() {
26 need net
27 @@ -144,6 +144,11 @@ fullstatus() {
28 fi
29 }
30
31 +virtualhosts() {
32 + checkconfd || return 1
33 + ${APACHE2} ${APACHE2_OPTS} -S
34 +}
35 +
36 configdump() {
37 LYNX="${LYNX:-lynx -dump}"
38 INFOURL="${INFOURL:-http://localhost/server-info}"