summaryrefslogtreecommitdiff
path: root/shutdownasap.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-08-20 12:44:40 +0200
committerErich Eckner <git@eckner.net>2016-08-20 12:52:07 +0200
commit37e4c66a1c4e3560685b29d52218db6090cfe1dc (patch)
tree87c6da95c8e8a6f2e35fff209b3bf019093a06da /shutdownasap.in
parent09148ea48f83ee7c356d9337be2cda6e58cb8ddf (diff)
downloadshutdownasap-37e4c66a1c4e3560685b29d52218db6090cfe1dc.tar.xz
PID files auslesen
Diffstat (limited to 'shutdownasap.in')
-rwxr-xr-xshutdownasap.in13
1 files changed, 11 insertions, 2 deletions
diff --git a/shutdownasap.in b/shutdownasap.in
index 378e70c..aef43c4 100755
--- a/shutdownasap.in
+++ b/shutdownasap.in
@@ -42,15 +42,24 @@ do
fi
done
- for s in "${!shutDownNoGos[@]}"
+ for s in "${!shutDownNoGoProcesses[@]}"
do
- if [ -e "${shutDownNoGos[${s}]}" ] || echo "${prozesse}" | grep -q "\(\s\|/\)${shutDownNoGos[${s}]}\(\$\|\s\)"
+ if echo "${prozesse}" | grep -q "\(\s\|/\)${shutDownNoGoProcesses[${s}]}\(\$\|\s\)"
then
nochwarten=true
echo "prozess: ${s}"
fi
done
+ for s in "${!shutDownNoGoFiles[@]}"
+ do
+ if [ -e "${shutDownNoGoFiles[${s}]}" ] && echo "${prozesse}" | grep -q "^\S\+\s\+$(cat "${shutDownNoGoFiles[${s}]}")\s"
+ then
+ nochwarten=true
+ echo "datei: ${s}"
+ fi
+ done
+
if ${nochwarten}
then
echo "warten ..."