summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Noël Rivasseau <elvanor@gentoo.org>2011-04-05 17:36:16 +0000
committerJean-Noël Rivasseau <elvanor@gentoo.org>2011-04-05 17:36:16 +0000
commit4b81175e43d9bc0372fd5ce09be3e9206b288067 (patch)
tree616770235ec9c95326543bd7ce88a3ce305a0994 /www-servers/tomcat/files
parentFix deprecation warnings. (diff)
downloadgentoo-2-4b81175e43d9bc0372fd5ce09be3e9206b288067.tar.gz
gentoo-2-4b81175e43d9bc0372fd5ce09be3e9206b288067.tar.bz2
gentoo-2-4b81175e43d9bc0372fd5ce09be3e9206b288067.zip
Improvement in init script, bug #191611
(Portage version: 2.1.9.42/cvs/Linux i686)
Diffstat (limited to 'www-servers/tomcat/files')
-rw-r--r--www-servers/tomcat/files/6/tomcat.init.29
-rw-r--r--www-servers/tomcat/files/6/tomcat.init.37
2 files changed, 7 insertions, 9 deletions
diff --git a/www-servers/tomcat/files/6/tomcat.init.2 b/www-servers/tomcat/files/6/tomcat.init.2
index 4411548872b8..10738925e96f 100644
--- a/www-servers/tomcat/files/6/tomcat.init.2
+++ b/www-servers/tomcat/files/6/tomcat.init.2
@@ -1,7 +1,7 @@
#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/6/tomcat.init.2,v 1.1 2010/06/06 12:32:34 caster Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/6/tomcat.init.2,v 1.2 2011/04/05 17:36:16 elvanor Exp $
opts="${opts} forcestop"
@@ -59,9 +59,8 @@ ssd() {
--stderr ${CATALINA_BASE}/logs/catalina.out"
start-stop-daemon ${args} --exec ${exec} -- ${OPTS_CP} "$@" ${CATALINA_ARGS} ${TOMCAT_START}
else
- start-stop-daemon ${args} --startas /bin/bash -- -c \
- "exec ${exec} ${OPTS_CP} $@ ${CATALINA_ARGS} ${TOMCAT_START} >> \
- \"$CATALINA_BASE/logs/catalina.out\" 2>&1"
+ start-stop-daemon ${args} --exec ${exec} -- ${OPTS_CP} "$@" ${CATALINA_ARGS} ${TOMCAT_START} >> \
+ "${CATALINA_BASE}/logs/catalina.out" 2>&1
fi
return $?
}
diff --git a/www-servers/tomcat/files/6/tomcat.init.3 b/www-servers/tomcat/files/6/tomcat.init.3
index 9cde76382c7c..17c92aa51c3e 100644
--- a/www-servers/tomcat/files/6/tomcat.init.3
+++ b/www-servers/tomcat/files/6/tomcat.init.3
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/6/tomcat.init.3,v 1.1 2011/02/14 23:09:40 fordfrog Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/6/tomcat.init.3,v 1.2 2011/04/05 17:36:16 elvanor Exp $
opts="${opts} forcestop"
@@ -59,9 +59,8 @@ ssd() {
--stderr ${CATALINA_BASE}/logs/catalina.out"
start-stop-daemon ${args} --exec ${exec} -- ${OPTS_CP} "$@" ${CATALINA_ARGS} ${TOMCAT_START}
else
- start-stop-daemon ${args} --name ${exec} --startas /bin/bash -- -c \
- "exec ${exec} ${OPTS_CP} $@ ${CATALINA_ARGS} ${TOMCAT_START} >> \
- \"$CATALINA_BASE/logs/catalina.out\" 2>&1"
+ start-stop-daemon ${args} --name ${exec} --exec ${exec} -- ${OPTS_CP} "$@" ${CATALINA_ARGS} ${TOMCAT_START} >> \
+ "${CATALINA_BASE}/logs/catalina.out" 2>&1
fi
return $?
}