summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshutdownasap.in7
1 files changed, 1 insertions, 6 deletions
diff --git a/shutdownasap.in b/shutdownasap.in
index 6a4acc1..8912543 100755
--- a/shutdownasap.in
+++ b/shutdownasap.in
@@ -75,11 +75,6 @@ do
i=1
fi
sleep 1
- prozesse=$(
- ps aux \
- | grep -v grep \
- | grep -vF 'rsync --daemon --no-detach'
- )
nochwarten=false
@@ -122,7 +117,7 @@ do
for s in "${!shutDownNoGoProcesses[@]}"
do
- if echo "${prozesse}" | grep -q "\(\s\|/\)${shutDownNoGoProcesses[${s}]}\(\$\|\s\)"
+ if pgrep -af "\(\s\|/\)${shutDownNoGoProcesses[${s}]}\(\$\|\s\)"
then
nochwarten=true
if ! ${quiet}; then