root/10kz/stop.sh

Revision 39, 180 bytes (checked in by jm3, 2 years ago)

added detect for install dir

  • Property svn:executable set to *
  • Property svn:keywords set to Id
Line 
1 #!/bin/sh
2
3 process=`ps aux | grep [m]ini | awk '{print $2}'`
4 if [ -n "$process" ]
5 then
6         echo killing server:
7         kill -9 $process
8 else
9         echo server already stopped
10         exit 1
11 fi
12
13 exit 0
Note: See TracBrowser for help on using the browser.