Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 23, 2012, 10:33:06 PM

Pages: [1]   Go Down
  Print  
Author Topic: Manually start/stop tomat through SSH.  (Read 3806 times)
gil
Newbie
*
Offline Offline

Posts: 5


« on: March 30, 2008, 06:34:15 AM »

I'm running a dedicated server with cPanel and Apache Tomcat 5.5 (installed by cPanel). Would someone be able to tell me how I can manually start and stop tomcat through SSH? I'd like to give the access to a specific account so the developer doesn't need to login through root, and doesn't need to login to the WHM.
Logged
bryantrv
Guest
« Reply #1 on: March 30, 2008, 06:57:28 AM »

On CentOS (redHat), I *think( you can just issue:
service tomcat stop  (or start, or status).
If that doesn't work, try :
/etc/init.d/tomcat stop

That said- on my Debian computer, tomcat is tomcat5.5, so the command is:
/etc/init.d/tomcat5.5 start
Logged
gil
Newbie
*
Offline Offline

Posts: 5


« Reply #2 on: March 30, 2008, 08:04:38 AM »

Thanks but none of those work. I checked in /etc/init.d and tomcat doesn't exist there. I don't understand how cPanel is able to start/stop/restart tomcat when there aren't programs to do it.
Logged
Mad_J
Spacescooter Operator
*****
Offline Offline

Posts: 45


« Reply #3 on: March 30, 2008, 11:02:44 AM »

use this
./scripts/restartsrv_tomcat
Logged
gil
Newbie
*
Offline Offline

Posts: 5


« Reply #4 on: March 30, 2008, 04:59:18 PM »

use this
./scripts/restartsrv_tomcat

Ok thankyou that works. One other question. Is there a way to give permission to a user apart from root to execute that?
Logged
Mad_J
Spacescooter Operator
*****
Offline Offline

Posts: 45


« Reply #5 on: March 31, 2008, 01:51:05 AM »

yeah, create a reseller with root access  Yep
Logged
gil
Newbie
*
Offline Offline

Posts: 5


« Reply #6 on: March 31, 2008, 04:47:06 AM »

Hmm.. I gave reseller privileges to the account in question and added "Restart Services" privileges which works fine except that the one service that doesn't show up is Tomcat. Why is that and can it be fixed?
Logged
Mad_J
Spacescooter Operator
*****
Offline Offline

Posts: 45


« Reply #7 on: March 31, 2008, 05:11:59 AM »

give root privileges to the reseller account
Logged
gil
Newbie
*
Offline Offline

Posts: 5


« Reply #8 on: March 31, 2008, 06:12:17 AM »

give root privileges to the reseller account

That then defeats the purpose of having a reseller account. Never mind. I instead used "/scripts/restartsrv tomcat" which worked when "/scripts/restartsrv_tomcat" didn't.

Thanks for all your help.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: