Unverified Commit 69ee095d authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Update power.sh

parent 9c01018a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ finish() {
          143 ) display="SIGTERM" ;;
        esac
        echo && error "Forcefully terminating $(app), reason: $display..."
        { kill -9 -- "$pid" && wait $! || :; } 2>/dev/null
        { kill -9 -- "$pid" || :; } 2>/dev/null
      fi
    fi
  fi
@@ -181,7 +181,7 @@ _graceful_shutdown() {
      fi
    else
      info "${name^} is still running, sending SIGTERM... ($cnt/$max)"
      { kill -15 -- "$pid" && wait $! || :; } 2>/dev/null
      { kill -15 -- "$pid" || :; } 2>/dev/null
    fi

    # Send ACPI shutdown signal