This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Starting/Stopping Tomcat Services Remotely

 
Kevin Homan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello; this is most likely a very noob question, and I apologize.

I was wondering if it was possible to start and stop the Tomcat services on a Server, from a Workstation. Currently our users have to go to the server to start and stop Tomcat when doing their work. I am supporting a remote customer in trying to find an answer and they are asking me to look at one of two options to see if they will work;

1. Can you write a script on the workstation within the startup and shutdown .bat files which can remotely start and stop the service on the server?
2. If the above cannot be done, can you run the start/stop scripts over sc.exe (the workstations are Windows, the server Linux).

In talking with people the consensus seems to be that using remote desktop or Terminal Services (mstsc) would be the way to go. Thanks for any help you guys can provide.
 
Misha Ver
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can look at Tomcat Manager , but allowing the users to start/stop tomcat services sounds a little bit weird for me.
 
Tim Holloway
Saloon Keeper
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use ssh, and in Windows, that's PuTTY unless I've bulked up the machine with cygwin (and sometimes even then!). I've also got Tomcat running as a service, so that means I can log in, do a "sudo /sbin/service tomcat restart" and go on my merry way.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic