title: How to cancel shutdown from the command line after issuing 'gnome-session-quit --power-off'
body: <p>The operating system is Red Hat Enterprise Linux 8.2. When the battery gets to a certain chargining percentage in the system I work on, the following command is used to perform shutdown:</p>
  <pre><code>gnome-session-quit --power-off
  </code></pre>
  <p>It will display to the user a countdown of 60 seconds, which gives the user time to cancel the shutdown. In case the user didn't cancel yet, but plugged in the power cable, I would like to cancel the shutdown without the need for the user to press the 'cancel' button. Is there a way to cancel the shutdown from the command line?</p>
  <p>I tried to kill the 'gnome-session-quit --power-off' process to see if it will cancel the shutdown, but it didn't.</p>
  <p>Any suggestions?</p>