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 @@
#
# This file is part of ProviewR.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 2 of
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# This program is distributed in the hope that it will be useful
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# 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/>
#
# Linking ProviewR statically or dynamically with other modules is
# 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.
#
# In addition, as a special exception, the copyright holders of
......@@ -28,27 +28,28 @@
# ProviewR Configurator, combine ProviewR with modules generated by the
# ProviewR PLC Editor to a PLC program, regardless of the license
# terms of these modules. You may copy and distribute the resulting
# combined work under the terms of your choice, provided that every
# copy of the combined work is accompanied by a complete copy of
# combined work under the terms of your choice, provided that every
# copy of the combined work is accompanied by a complete copy of
# 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.
#
kill -9 `ps ax | grep "rt_neth_acp" | awk '{ print $1}'`
kill -9 `ps ax | grep "rt_neth" | awk '{ print $1}'`
kill -9 `ps ax | grep "rt_qmon" | awk '{ print $1}'`
kill -9 `ps ax | grep "rt_emon" | awk '{ print $1}'`
kill -9 `ps ax | grep "rt_tmon" | awk '{ print $1}'`
kill -9 `ps ax | grep "rt_\|/pwr/exe/rs" | awk '{ print $1}'`
kill -9 `ps ax | grep "\[rt_" | awk '{ print $1}'`
kill -9 `ps ax | grep "plc_" | awk '{ print $1}'`
kill -9 `ps ax | grep "jpwr.rt" | awk '{ print $1}'`
kill -9 `ps ax | grep "rs_nmps" | awk '{ print $1}'`
kill -9 `ps ax | grep "rs_remote" | awk '{ print $1}'`
kill -9 `ps ax | grep "sev_server" | awk '{ print $1}'`
kill -9 `ps ax | grep "opc_server" | awk '{ print $1}'`
kill -9 `ps ax | grep "opc_provider" | awk '{ print $1}'`
pkill "rt_neth_acp"
pkill "rt_neth"
pkill "rt_qmon"
pkill "rt_emon"
pkill "rt_tmon"
pkill "^rt_"
pkill "/pwr/exe/rs"
pkill "\[rt_"
pkill "^plc_"
pkill "jpwr.rt"
pkill "rs_nmps"
pkill "rs_remote"
pkill "sev_server"
pkill "opc_server"
pkill "opc_provider"
if [ -u $pwr_exe/rt_ini ]; then
user=`ls -al $pwr_exe/rt_ini | awk '{ print $3}'`
else
......@@ -77,8 +78,8 @@
while read appid appname appload apprun appfile appprio appdebug apparg; do
s1=`eval 'echo $appid' | head -c1`
s8=`eval 'echo $appid' | head -c8`
if [ -n "$appid" ] && [ "$s1" != "#" ]; then
if [ $appid != "pwr_neth" ] &&
if [ -n "$appid" ] && [ "$s1" != "#" ]; then
if [ $appid != "pwr_neth" ] &&
[ $appid != "pwr_qmon" ] &&
[ $appid != "pwr_nacp" ] &&
[ $appid != "pwr_io" ] &&
......@@ -121,8 +122,8 @@
source $pwrp_exe/pwrp_stop.sh
fi
rm /tmp/pwr*$PWR_BUS_ID
rm -f /tmp/pwr*$PWR_BUS_ID
#rm -f /tmp/pwr*
#id=`ipcs -s | grep $user | awk '{print $2}'`
#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