annotate README @ 27:ec5d764b73a3

Move README.
author Mikhail Kryshen <mikhail@kryshen.net>
date Tue, 03 Nov 2009 18:09:31 +0300 (2009-11-03)
parents
children 3349a282943a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
27
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
1 = Description =
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
2
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
3 Host lifecycle event listener for Apache Tomcat to automatically
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
4 deploy update and undeploy applications from user home directories.
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
5
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
6 This is a rewrite of org.apache.catalina.startup.UserConfig listener
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
7 included in Tomcat which adds the following features:
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
8 - multiple web applications for each user,
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
9 - automatic application deployment,
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
10 - on UNIX read network user database using getent command.
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
11
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
12 = Installation =
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
13
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
14 Copy userconfig.jar to Tomcat lib directory. Add Listener to the Host
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
15 element in the Tomcat configuration file (server.xml).
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
16
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
17 Listener that uses passwd database to list users:
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
18 <Listener className="kryshen.catalina.userconfig.PasswdUserConfig"/>
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
19
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
20 Listener that considers all home directories in the specified base
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
21 directory:
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
22 <Listener className="kryshen.catalina.userconfig.HomesUserConfig"/>
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
23
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
24 = Listener properties =
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
25
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
26 Common:
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
27
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
28 directoryName - base directory for web applications inside user's
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
29 home directory. Default: "public_webapps".
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
30
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
31 appsPerUser - maximum number of application each user is allowed to
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
32 deploy. Default: -1 (unlimited).
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
33
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
34 PasswdUserConfig:
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
35
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
36 passwd - path to local passwd file. Default: "/etc/passwd".
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
37
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
38 getent - path to getent program. Local passwd is used if this is not
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
39 set. Default: not set (null).
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
40
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
41 HomesUserConfig
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
42
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
43 homeBase - base directory for user homes. Default: "/home".
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
44
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
45 = Example =
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
46
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
47 <Host name="localhost" appBase="webapps"
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
48 unpackWARs="true" autoDeploy="true"
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
49 xmlValidation="false" xmlNamespaceAware="false"
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
50 backgroundProcessorDelay="15">
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
51
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
52 <Listener className="kryshen.catalina.userconfig.PasswdUserConfig"
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
53 getent="/usr/bin/getent" appsPerUser="5"/>
ec5d764b73a3 Move README.
Mikhail Kryshen <mikhail@kryshen.net>
parents:
diff changeset
54 </Host>