Skip to content
Snippets Groups Projects
Commit caf5cfb8 authored by Arno Schoenmakers's avatar Arno Schoenmakers
Browse files

TAsk #6518: Adapt swlevel to use WCCILpmon for WinCC 3.14

parent eea3cdec
No related branches found
No related tags found
No related merge requests found
...@@ -241,7 +241,7 @@ start_prog() ...@@ -241,7 +241,7 @@ start_prog()
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
curdate=`date +%Y%m%dT%H%M%S` curdate=`date +%Y%m%dT%H%M%S`
# PVSS needs special treatment # PVSS needs special treatment
if [ "$prog" = "PVSS00pmon" ]; then if [ "$prog" = "PVSS00pmon" -o "$prog" = "WCCILpmon" ]; then
echo Starting $prog echo Starting $prog
start_pvss2 1>/dev/null 2>&1 & start_pvss2 1>/dev/null 2>&1 &
sleep 3 sleep 3
...@@ -320,7 +320,7 @@ stop_prog() ...@@ -320,7 +320,7 @@ stop_prog()
fi fi
# PVSS needs special treatment # PVSS needs special treatment
if [ "$prog" = "PVSS00pmon" ]; then if [ "$prog" = "PVSS00pmon" -o "$prog" = "WCCILpmon" ]; then
echo "Stopping PVSS database" echo "Stopping PVSS database"
start_pvss2 -stopWait start_pvss2 -stopWait
return return
...@@ -434,13 +434,6 @@ status_prog() ...@@ -434,13 +434,6 @@ status_prog()
highest_level_running=$levelnr highest_level_running=$levelnr
else else
pid="DOWN" pid="DOWN"
if [ "$prog" == "PVSS00pmon" ]; then
# Check for WCCILpmon (3.14 equivalent)
/sbin/pidof -x WCCILpmon 1>/dev/null 2>&1
if [ $? -eq 0 ]; then
pid=( `/sbin/pidof -x WCCILpmon` )
fi
fi
fi fi
if [ "$pid" != "DOWN" ] && [ ${#obsid[0]} != 0 ]; then if [ "$pid" != "DOWN" ] && [ ${#obsid[0]} != 0 ]; then
...@@ -712,7 +705,7 @@ handle_args() ...@@ -712,7 +705,7 @@ handle_args()
# On non-PVSS system LoggingProcessor. # On non-PVSS system LoggingProcessor.
logProgToSkip=LoggingProcessor logProgToSkip=LoggingProcessor
if [ -f ${BINDIR}/PVSS00pmon ]; then if [ -f ${BINDIR}/PVSS00pmon -o -f ${BINDIR}/WCCILpmon ]; then
logProgToSkip=LoggingClient logProgToSkip=LoggingClient
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment