From 958a4b50e37beb42dce6abb1917ed9d594135a32 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Tue, 18 Aug 2015 16:27:23 +0200 Subject: [PATCH] backup-status: Use "poster -ap" when "--running" finds a running job --- bin/backup-status | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/backup-status b/bin/backup-status index d7d3176..e0c5c04 100755 --- a/bin/backup-status +++ b/bin/backup-status @@ -79,6 +79,8 @@ if [ "$1" == "-r" -o "$1" == "--running" ]; then if [ -n "$pid" ]; then if kill -0 "$pid" >/dev/null 2>&1; then echo "Backup job running with PID $pid." + echo + pstree -ap "$pid" 2>/dev/null exit 0 else echo "No backup running (invalid PID $pid in \"$PIDFILE\")." -- 2.39.2