summaryrefslogtreecommitdiff
path: root/2.2
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2009-01-01 13:49:38 +0000
committerBenedikt Boehm <hollow@gentoo.org>2009-01-01 13:49:38 +0000
commitf93adbd97e960fe8cc233e58fe5b41bcc38083c3 (patch)
treeefafd1bff5e2e8f0741b710c40b4b37d0063537c /2.2
parentremove obsolete patches (diff)
downloadapache-f93adbd97e960fe8cc233e58fe5b41bcc38083c3.tar.gz
apache-f93adbd97e960fe8cc233e58fe5b41bcc38083c3.tar.bz2
apache-f93adbd97e960fe8cc233e58fe5b41bcc38083c3.zip
add init script action to list virtual hosts, #252194
Diffstat (limited to '2.2')
-rwxr-xr-x2.2/init/apache2.initd7
1 files changed, 6 insertions, 1 deletions
diff --git a/2.2/init/apache2.initd b/2.2/init/apache2.initd
index 5c6f959..5eaf675 100755
--- a/2.2/init/apache2.initd
+++ b/2.2/init/apache2.initd
@@ -2,7 +2,7 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-opts="configdump configtest fullstatus graceful gracefulstop modules reload"
+opts="configdump configtest fullstatus graceful gracefulstop modules reload virtualhosts"
depend() {
need net
@@ -144,6 +144,11 @@ fullstatus() {
fi
}
+virtualhosts() {
+ checkconfd || return 1
+ ${APACHE2} ${APACHE2_OPTS} -S
+}
+
configdump() {
LYNX="${LYNX:-lynx -dump}"
INFOURL="${INFOURL:-http://localhost/server-info}"