Gentoo Archives: gentoo-commits

From: "Benedikt Boehm (hollow)" <hollow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] apache r218 - trunk/dist/2.2/init
Date: Thu, 01 Jan 2009 13:49:42
Message-Id: E1LINvf-0000ja-9X@stork.gentoo.org
1 Author: hollow
2 Date: 2009-01-01 13:49:38 +0000 (Thu, 01 Jan 2009)
3 New Revision: 218
4
5 Modified:
6 trunk/dist/2.2/init/apache2.initd
7 Log:
8 add init script action to list virtual hosts, #252194
9
10 Modified: trunk/dist/2.2/init/apache2.initd
11 ===================================================================
12 --- trunk/dist/2.2/init/apache2.initd 2008-10-25 14:38:22 UTC (rev 217)
13 +++ trunk/dist/2.2/init/apache2.initd 2009-01-01 13:49:38 UTC (rev 218)
14 @@ -2,7 +2,7 @@
15 # Copyright 1999-2007 Gentoo Foundation
16 # Distributed under the terms of the GNU General Public License v2
17
18 -opts="configdump configtest fullstatus graceful gracefulstop modules reload"
19 +opts="configdump configtest fullstatus graceful gracefulstop modules reload virtualhosts"
20
21 depend() {
22 need net
23 @@ -144,6 +144,11 @@
24 fi
25 }
26
27 +virtualhosts() {
28 + checkconfd || return 1
29 + ${APACHE2} ${APACHE2_OPTS} -S
30 +}
31 +
32 configdump() {
33 LYNX="${LYNX:-lynx -dump}"
34 INFOURL="${INFOURL:-http://localhost/server-info}"