LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-16-2005, 09:56 AM   #1
PerfectReign
Member
 
Registered: Apr 2005
Location: Los Angeles
Distribution: openSUSE / Ubuntu
Posts: 294

Rep: Reputation: 33
Remote Restart Tomcat


I've been searching for awhile and cannot find an answer. I think this is the proper forum to place this question, but forgive me if I need it to go elsewhere....

We've recently deployed a solution using an SLES server with Tomcat running. I have no access to this machine and do not need it.

We have a test machine which is run identical to the production machine, except that I can FTP files to the tomcat\webapps folder, when I need to test updated versions.

However, in order for Tomcat to pick up these files, Apache/Tomcat seems to need a restart. This is fine on the produciton machine, because I store all final versions in VSS and send a update request to our server group. They schedule the update and restart the server when appropriate. However, for the test server, I'd like to update on an AdHoc basic and somehow have the ability to restart from my Windows (XP) workstation.

I don't have SSH access to the machine and don't want a root-level console login. Is there - however - some GUI or remote command that can restart a Tomcat service on a given server? I'm thinking I can get a password for an account that only has the ability to start/stop Apache/Tomcat and use this login.

TIA
 
Old 05-16-2005, 10:05 AM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 51
The SSH solution is the best in my opinion, it is what most people use to administrate servers on Unix. It is how i was administrating a tomcat/ftp/cvs server for web hosting. You are not oblige to be root. I never use root login except for administrative tasks. In your case, you can install sudo and SSH, then add yourself to the sudo users with the ability to restart tomcat.

ssh user@host.com
login:user
password:user

Code:
#cd $CATALINA_HOME/bin;
#sudo ./catalina.sh stop;sudo ./catalina.sh start;
 
Old 05-16-2005, 11:33 AM   #3
PerfectReign
Member
 
Registered: Apr 2005
Location: Los Angeles
Distribution: openSUSE / Ubuntu
Posts: 294

Original Poster
Rep: Reputation: 33
Oh, okay, cool!

I had always ASSumed that sudo was just another way of typing 'su' to become root. (I hadn't actually tried it.)

I'll recommend this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remote restart server without keyboard dereko Debian 1 08-05-2005 08:01 PM
TOMCAT init script not working on startup -- tomcat 4.x / Mandrake Linux 8.0 jmartinph Mandriva 0 03-08-2004 01:31 AM
crontab job to restart tomcat... barbean Programming 0 11-17-2003 12:58 AM
Why use Apache with Tomcat rather than just Tomcat itself? davee Linux - Software 1 08-21-2003 09:47 PM
remote restart apache sim Linux - Software 1 06-11-2002 05:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration