Commit b4c4ff4d authored by Lorenzo Pivetta's avatar Lorenzo Pivetta

fix status routine

parent db777daa
......@@ -64,7 +64,7 @@ stopsrv()
statussrv()
{
pid=`ps -ef|awk '$8 == search1 && $9 == search2 {print $2}' search1=${SRV} search2=${INSTANCE}`
pid=`ps -ef|awk '$8 ~ search1 && $9 == search2 {print $2}' search1=${SRV} search2=${INSTANCE}`
if [ ${pid} ]; then
echo "${SRV} running"
else
......
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