• Post Reply Bookmark Topic Watch Topic
  • New Topic

Server application  RSS feed

 
Dorj Galaa
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi every body.

I have developing server application using java and start.sh and stop.sh. When stop server i kill process.
echo `ps -aefwww|grep java|grep -v grep|grep test.Server`|cut -d ' ' -f 2|xargs kill -KILL > /dev/null 2>&1


Do you have a good idea to stop this server?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a server, right? So implement a command within your service that stops the server. "stop.sh" then connects to the server and issues this command. Be sure to implement appropriate security controls.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!