diff options
author | 2009-01-01 13:49:38 +0000 | |
---|---|---|
committer | 2009-01-01 13:49:38 +0000 | |
commit | f93adbd97e960fe8cc233e58fe5b41bcc38083c3 (patch) | |
tree | efafd1bff5e2e8f0741b710c40b4b37d0063537c | |
parent | remove obsolete patches (diff) | |
download | apache-f93adbd97e960fe8cc233e58fe5b41bcc38083c3.tar.gz apache-f93adbd97e960fe8cc233e58fe5b41bcc38083c3.tar.bz2 apache-f93adbd97e960fe8cc233e58fe5b41bcc38083c3.zip |
add init script action to list virtual hosts, #252194
-rwxr-xr-x | 2.2/init/apache2.initd | 7 |
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}" |