]> arthur.barton.de Git - backup-script.git/commitdiff
backup-status: Use "poster -ap" when "--running" finds a running job
authorAlexander Barton <alex@barton.de>
Tue, 18 Aug 2015 14:27:23 +0000 (16:27 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 18 Aug 2015 14:27:23 +0000 (16:27 +0200)
bin/backup-status

index d7d31762abe64c621b0fe51ec788d4fe55464694..e0c5c0457cade0c6f0b37184a8be7d01f05f931d 100755 (executable)
@@ -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\")."