aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-mail/davmail-bin/files/davmail-3.9.8-initd')
-rw-r--r--net-mail/davmail-bin/files/davmail-3.9.8-initd8
1 files changed, 3 insertions, 5 deletions
diff --git a/net-mail/davmail-bin/files/davmail-3.9.8-initd b/net-mail/davmail-bin/files/davmail-3.9.8-initd
index 70dc6e1b..ca5ae904 100644
--- a/net-mail/davmail-bin/files/davmail-3.9.8-initd
+++ b/net-mail/davmail-bin/files/davmail-3.9.8-initd
@@ -1,10 +1,8 @@
#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Copyright 2012 Stuart Shelton
+# Copyright 2012-2015 Stuart Shelton
# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-DIR="%INST_DIR%"
+DIR="${DAVMAIL_DIR:-%INST_DIR%}"
depend() {
need localmount
@@ -26,7 +24,7 @@ start() {
start-stop-daemon \
--start --quiet --pidfile /var/run/davmail.pid \
--user davmail:davmail --make-pidfile --background \
- --exec java -- -cp "${DIR}"/bin/davmail.jar:${CLASSPATH} davmail.DavGateway "${DIR}"/conf/davmail.properties
+ --exec java -- ${JAVA_OPTS:-} -cp "${DIR}"/bin/davmail.jar:${CLASSPATH} davmail.DavGateway "${DIR}"/conf/davmail.properties
local ret=$?
eend $ret
return $ret