]> arthur.barton.de Git - backup-script.git/blobdiff - bin/backup-status
backup-status: Use "poster -ap" when "--running" finds a running job
[backup-script.git] / 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\")."