Commit 764118a5 authored by Marcus Nordenberg's avatar Marcus Nordenberg Committed by Claes Sjöfors

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 e27cefe2
...@@ -5,22 +5,22 @@ ...@@ -5,22 +5,22 @@
# #
# This file is part of ProviewR. # This file is part of ProviewR.
# #
# This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as # modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 2 of # published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version. # the License, or (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful # This program is distributed in the hope that it will be useful
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with ProviewR. If not, see <http://www.gnu.org/licenses/> # along with ProviewR. If not, see <http://www.gnu.org/licenses/>
# #
# Linking ProviewR statically or dynamically with other modules is # Linking ProviewR statically or dynamically with other modules is
# making a combined work based on ProviewR. Thus, the terms and # making a combined work based on ProviewR. Thus, the terms and
# conditions of the GNU General Public License cover the whole # conditions of the GNU General Public License cover the whole
# combination. # combination.
# #
# In addition, as a special exception, the copyright holders of # In addition, as a special exception, the copyright holders of
...@@ -28,27 +28,28 @@ ...@@ -28,27 +28,28 @@
# ProviewR Configurator, combine ProviewR with modules generated by the # ProviewR Configurator, combine ProviewR with modules generated by the
# ProviewR PLC Editor to a PLC program, regardless of the license # ProviewR PLC Editor to a PLC program, regardless of the license
# terms of these modules. You may copy and distribute the resulting # terms of these modules. You may copy and distribute the resulting
# combined work under the terms of your choice, provided that every # combined work under the terms of your choice, provided that every
# copy of the combined work is accompanied by a complete copy of # copy of the combined work is accompanied by a complete copy of
# the source code of ProviewR (the version used to produce the # the source code of ProviewR (the version used to produce the
# combined work), being distributed under the terms of the GNU # combined work), being distributed under the terms of the GNU
# 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
...@@ -77,8 +78,8 @@ ...@@ -77,8 +78,8 @@
while read appid appname appload apprun appfile appprio appdebug apparg; do while read appid appname appload apprun appfile appprio appdebug apparg; do
s1=`eval 'echo $appid' | head -c1` s1=`eval 'echo $appid' | head -c1`
s8=`eval 'echo $appid' | head -c8` s8=`eval 'echo $appid' | head -c8`
if [ -n "$appid" ] && [ "$s1" != "#" ]; then if [ -n "$appid" ] && [ "$s1" != "#" ]; then
if [ $appid != "pwr_neth" ] && if [ $appid != "pwr_neth" ] &&
[ $appid != "pwr_qmon" ] && [ $appid != "pwr_qmon" ] &&
[ $appid != "pwr_nacp" ] && [ $appid != "pwr_nacp" ] &&
[ $appid != "pwr_io" ] && [ $appid != "pwr_io" ] &&
...@@ -121,8 +122,8 @@ ...@@ -121,8 +122,8 @@
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}'`
#id1=`echo $id | awk '{print $1}'` #id1=`echo $id | awk '{print $1}'`
......
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