Commit afe31bd6 authored by Marcus Nordenberg's avatar Marcus Nordenberg

pwr_stop.sh: grep ^rt_ instead of rt_It was killing scripts like...

pwr_stop.sh: grep ^rt_ instead of rt_It was killing scripts like start_proviewr.sh and so on and so forth...
parent f08dacd0
...@@ -35,20 +35,21 @@ ...@@ -35,20 +35,21 @@
# General Public License plus this exception. # General Public License plus this exception.
# #
kill -9 `ps ax | grep "rt_neth_acp" | awk '{ print $1}'` pkill "rt_neth_acp"
kill -9 `ps ax | grep "rt_neth" | awk '{ print $1}'` pkill "rt_neth"
kill -9 `ps ax | grep "rt_qmon" | awk '{ print $1}'` pkill "rt_qmon"
kill -9 `ps ax | grep "rt_emon" | awk '{ print $1}'` pkill "rt_emon"
kill -9 `ps ax | grep "rt_tmon" | awk '{ print $1}'` pkill "rt_tmon"
kill -9 `ps ax | grep "rt_\|/pwr/exe/rs" | awk '{ print $1}'` pkill "^rt_"
kill -9 `ps ax | grep "\[rt_" | awk '{ print $1}'` pkill "/pwr/exe/rs"
kill -9 `ps ax | grep "plc_" | awk '{ print $1}'` pkill "\[rt_"
kill -9 `ps ax | grep "jpwr.rt" | awk '{ print $1}'` pkill "^plc_"
kill -9 `ps ax | grep "rs_nmps" | awk '{ print $1}'` pkill "jpwr.rt"
kill -9 `ps ax | grep "rs_remote" | awk '{ print $1}'` pkill "rs_nmps"
kill -9 `ps ax | grep "sev_server" | awk '{ print $1}'` pkill "rs_remote"
kill -9 `ps ax | grep "opc_server" | awk '{ print $1}'` pkill "sev_server"
kill -9 `ps ax | grep "opc_provider" | awk '{ print $1}'` pkill "opc_server"
pkill "opc_provider"
if [ -u $pwr_exe/rt_ini ]; then if [ -u $pwr_exe/rt_ini ]; then
user=`ls -al $pwr_exe/rt_ini | awk '{ print $3}'` user=`ls -al $pwr_exe/rt_ini | awk '{ print $3}'`
else else
...@@ -121,7 +122,7 @@ ...@@ -121,7 +122,7 @@
source $pwrp_exe/pwrp_stop.sh source $pwrp_exe/pwrp_stop.sh
fi fi
rm /tmp/pwr*$PWR_BUS_ID rm -f /tmp/pwr*$PWR_BUS_ID
#rm -f /tmp/pwr* #rm -f /tmp/pwr*
#id=`ipcs -s | grep $user | awk '{print $2}'` #id=`ipcs -s | grep $user | awk '{print $2}'`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment