blob: 2bce4eb1328ff64ef3d98459fdbfdc96adc9a315 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/5.0.28/tomcat.init,v 1.6 2005/11/14 20:17:58 betelgeuse Exp $
depend() {
use dns logger mysql postgresql net
}
start() {
ebegin "Starting Tomcat"
cd ${CATALINA_BASE}/webapps
start-stop-daemon --start --quiet --chuid tomcat:tomcat \
--make-pidfile --pidfile /var/run/tomcat.pid \
--exec ${CATALINA_HOME}/bin/catalina.sh \
--background -- ${TOMCAT_START}
eend $?
}
stop() {
ebegin "Stopping Tomcat"
start-stop-daemon --start --quiet --chuid tomcat:tomcat \
--exec ${CATALINA_HOME}/bin/catalina.sh \
--background -- ${TOMCAT_STOP}
eend $?
}
|