Hi Gary,
You need to start it from the init.d. Below is a script we use to do the
trick. I connect through ssh, change user to root and then run the script:
/etc/init.d/tomcat start
the stop argument will do the obvious of course.
root@www1:/# cat /etc/init.d/tomcat
#! /bin/sh
case "$1" in
'start')
su - httpd -c /home/httpd/tomcat/bin/tomcat_start
;;
'stop')
su - httpd -c /home/httpd/tomcat/bin/tomcat_stop
;;
esac
-----Original Message-----
From: Gary Lawson [mailto:[EMAIL PROTECTED]]
Sent: 12 March 2001 12:42
To: [EMAIL PROTECTED]
Subject: Logout of telnet session - tomcat stops
Hello
I want to be able to control tomcat on a remote (Solaris) machine by telnet
from a PC.
It starts fine but when I close the telnet session, tomcat stops.
More detail:
1. Log in as gary.
2. su root (it runs on port 80)
3. start tomcat (runs fine)
4. logout root (tomcat still running)
5. logout gary (tomcat stops)
I have searched the archive but couldn't find the answer.
Any ideas?
TIA
Gary
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]