diff options
author | Erich Eckner <git@eckner.net> | 2024-01-10 19:30:36 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2024-01-10 19:30:36 +0100 |
commit | 3661e0f42e16b4a3a3636324731ba4f3127def2d (patch) | |
tree | b3f0a5c04df3e6a533a0cb46350d9b701c3e817e | |
parent | 7b2ffd4a09edbeb01aa3b98a2454a9ddb6ac5481 (diff) | |
download | shutdownasap-3661e0f42e16b4a3a3636324731ba4f3127def2d.tar.xz |
shutdownasap: look in /proc/ what file ids are still running
-rwxr-xr-x | shutdownasap.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shutdownasap.in b/shutdownasap.in index 2901e8f..6a4acc1 100755 --- a/shutdownasap.in +++ b/shutdownasap.in @@ -133,7 +133,7 @@ do for s in "${!shutDownNoGoFiles[@]}" do - if [ -e "${shutDownNoGoFiles[${s}]}" ] && echo "${prozesse}" | grep -q "^\S\+\s\+$(cat "${shutDownNoGoFiles[${s}]}")\s" + if [ -e "${shutDownNoGoFiles[${s}]}" ] && [ -d "/proc/$(cat "${shutDownNoGoFiles[${s}]}")" ] then nochwarten=true if ! ${quiet}; then |