mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Repair and simplify installCDE.src:CleanDaemons()
This commit is contained in:
parent
041788debc
commit
0ffb04938c
1 changed files with 1 additions and 16 deletions
|
@ -201,25 +201,10 @@ CleanDaemons()
|
||||||
then
|
then
|
||||||
stopsrc -s inetd >>$LOGFILE 2>&1
|
stopsrc -s inetd >>$LOGFILE 2>&1
|
||||||
fi
|
fi
|
||||||
elif [ "$PLATFORM" = "openbsd" ] || [ "$PLATFORM" = "freebsd" ] || \
|
|
||||||
[ "$PLATFORM" = "netbsd" ] || [ "$PLATFORM" = "linux" ]
|
|
||||||
then
|
|
||||||
pgrep pid,comm > /tmp/tmppsout
|
|
||||||
if [ -s /tmp/tmppsout ]
|
|
||||||
then
|
|
||||||
awk '{print "kill " $1}' /tmp/tmppsout | /bin/sh -f
|
|
||||||
sleep 2
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
pgrep -v pgrep >/tmp/tmppsout
|
ps -eo pid,comm | grep $i | awk '{print "kill " $1}' | /bin/sh
|
||||||
if [ -s /tmp/tmppsout ]
|
|
||||||
then
|
|
||||||
awk '{print "kill " $2}' /tmp/tmppsout | /bin/sh -f
|
|
||||||
sleep 2
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm -f /tmp/tmppsout
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RestartInetd()
|
RestartInetd()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue