search for: reboot_notify

Displaying 2 results from an estimated 2 matches for "reboot_notify".

2021 Mar 07
1
Request For Additional Status Confirmation
...s a similar situation. I wasn't clear enough in my initial question...it isn't so much that I want the status of the UPS, rather I want to know that the Pi is operational again after upsmon has shutdown the Pi and then the UPS has had power restored to it. I created a script called "reboot_notify" and saved it in usr/local/bin, and it looks like this: #!/bin/sh echo ?Rpi has booted into operation? | mail -s "Alert from Peppermill RPi" [my email address] echo "Rpi has booted into operation" | mail -s "Alert from Peppermill RPi" [email address for text m...
2013 Nov 08
4
[PATCH 3/4] xen/manage: Guard against user-space initiated poweroff and XenBus.
There is a race case where the user does ''poweroff'' and at the same time the system admin does ''xl shutdown''. Depending on the race, the system_state will be SYSTEM_RUNNING or SYSTEM_POWER_OFF. If SYSTEM_RUNNING we just end up making a duplicate call to ''poweroff'' (while it is running). That will fail or execute (And if executed then it will