On Friday 14 November 2003 07:21 am, you wrote: > I'm looking for a startup script for Tomcat for starting it at system boot. > > Thanks! > > Roberto. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
#!/bin/sh # . /etc/rc.d/init.d/functions TOMCAT_USER=nobody # See how we were called. case "$1" in start) echo -n "Starting tomcat: " su -l $TOMCAT_USER -c '/usr/local/tomcat/bin/startup.sh' echo ;; stop) echo -n "Stopping tomcat: " su -l $TOMCAT_USER -c '/usr/local/tomcat/bin/shutdown.sh' echo ;; restart) $0 stop $0 start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 esac exit 0 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]