Date: Mon, 14 Mar 2005 13:40:34 +0100 (MET) From: Mipam <mipam@ibb.net> To: Thomas Lange <freebja@wie-ich.de> Cc: freebsd-java@freebsd.org Subject: Re: tomcat50ctl start arguments Message-ID: <Pine.BSO.4.56.0503141338320.29397@ux11.ltcm.net> In-Reply-To: <002e01c52891$c2d0a5f0$16b2a8c0@bubu> References: <Pine.BSO.4.56.0503141310150.29397@ux11.ltcm.net> <002e01c52891$c2d0a5f0$16b2a8c0@bubu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 14 Mar 2005, Thomas Lange wrote: > > I wish to add some arguments to tomcat when it starts, > > for example, i wish to give -Xmx256M as argument to tomcat. > > How can i do this? > > You could edit "/usr/local/etc/rc.d/[..]jakarta-tomcat50.sh" as follows to > make it use the tomcat start and stop scripts and then edit them or set > environment variables to use your custom jvm settings. Thanks, so for example i could do: su -f -m www -c "exec /usr/local/jakarta-tomcat5.0/bin/startup.s h" -Xmx256M >/dev/null && echo -n 'tomcat50' Adding -Xmx256M behind the startup statement to make it work? Bye, Mipam. > > case "$1" in > start) > echo -n ' ' > truncate -s 0 /var/run/tomcat50.pid > chown www:www /var/run/tomcat50.pid > chmod 600 /var/run/tomcat50.pid > su -f -m www -c "exec > /usr/local/jakarta-tomcat5.0/bin/startup.sh" >/dev/null && echo -n > 'tomcat50' > # su -f -m www -c "exec /usr/local/bin/tomcat50ctl start" > >/dev/null && echo -n 'tomcat50' > ;; > stop) > echo -n ' ' > chown www:www /var/run/tomcat50.pid > chmod 600 /var/run/tomcat50.pid > su -f -m www -c "exec > /usr/local/jakarta-tomcat5.0/bin/shutdown.sh" >/dev/null 2>&1 ; echo -n > 'tomcat50' > # su -f -m www -c "exec /usr/local/bin/tomcat50ctl stop" > >/dev/null 2>&1 ; echo -n 'tomcat50' > ;; > *) > echo "" > echo "Usage: ${MYSELF} { start | stop }" > echo "" > exit 64 > ;; > esac >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSO.4.56.0503141338320.29397>