Add Java Service Wrapper contribution from Dustin Hawkins

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1368 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-08-20 07:04:17 +00:00
parent 8e91a1df5e
commit ac22c555bc
2 changed files with 39 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,39 @@
From Dustin Hawkins:
I run two instances of DavMail on my linux desktop to connect to work and university exchange servers.
In order to accomplish this, I used the Java Service Wrapper.
Thought I would share my configs in case any one else wanted to run multi-instance under the java service wrapper.
http://wrapper.tanukisoftware.org/doc/english/download.jsp
I created the following directory structure
/opt/davmail
bin/
wrapper <-- this is provided by java service wrapper. platform specific native executable.
davmail
davmail_2
lib/
<davmail jars>
<wrapper static objects/dll's for appropriate platform>
conf/
wrapper.conf
wrapper.conf_2
davmail.properties
davmail.properties_2
logs/
The bin/davmail* scripts are the linux start/stop scripts for each instance
the conf/ directory has two files for each instance, a wrapper.conf, and a davmail.properties.
by linking the bin/davmail* scripts into /etc/init.d and /etc/rc.d, I start davmail as a linux service,
and its easily start/stop/restart-able via the standard linux commands.
If you download the Java Service Wrapper, you can find the appropriate executables and start scripts for
your platform under <wrapper install dir>/bin
You can find the correct static object or DLL files under the <wrapper install dir>/lib
I have included a ZIP of my wrapper.conf and davmail startup scripts