viewing paste Unknown #1637 | Diff

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Index: athena-start
--- athena-start Base (BASE)
+++ athena-start Locally Modified (Based On LOCAL)
@@ -51,7 +51,10 @@
         echo "Now Started Athena."
 ;;
     'stop')
-        ps ax | grep -E "${L_SRV}|${C_SRV}|${M_SRV}" | awk '{print $1}' | xargs kill
+       login_pid=$(ls -la /proc/*/exe 2>1 | grep "$(path)login-server_sql" | grep -oe "/proc/[0-9]*/exe" | grep -oe "[0-9]*")
+       char_pid=$(ls -la /proc/*/exe 2>1 | grep "${path}char-server_sql" | grep -oe "/proc/[0-9]*/exe" | grep -oe "[0-9]*")
+       map_pid=$(ls -la /proc/*/exe 2>1 | grep "${path}map-server_sql" | grep -oe "/proc/[0-9]*/exe" | grep -oe "[0-9]*")
+        kill -INT $login_pid $char_pid $map_pid
 ;;
     'restart')
         $0 stop
Viewed 1329 times, submitted by lighta.