mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-11 05:17:41 +03:00
parent
4c1e83719d
commit
688b0b70ca
@ -68,7 +68,8 @@ begin
|
||||
script = <<~EOS
|
||||
set -x -e -o pipefail; shopt -qs failglob
|
||||
(ps --no-headers -o pid,cmd -C ruby \
|
||||
| awk '$0 ~ "backup .*#{vm_uuid}" { print $1 } END { print "\\0" }' || :) \\
|
||||
| awk '$0 !~ "prebackup(_live)? .*#{vm_uuid} " { print }' \
|
||||
| awk '$0 ~ "backup .*#{vm_uuid} " { print $1 } END { print "\\0" }' || :) \\
|
||||
| (read -d '' PIDS
|
||||
[[ -n "$PIDS" ]] || exit 0 # empty
|
||||
[[ -z "${PIDS//[[:space:][:digit:]]/}" ]] || exit -1 # !integers
|
||||
|
Loading…
Reference in New Issue
Block a user