Created
September 7, 2021 22:25
-
-
Save tuklusan/ac4f44c6f404fb4eb34517c1f1074a8b to your computer and use it in GitHub Desktop.
SANYALnet Labs | Save State of VirtualBox Virtual Machines on APC UPS power loss shutdown by apcupsd Linux Daemon / do-nothing-event-handler.sh: see https://supratim-sanyal.blogspot.com/2021/09/save-state-of-virtualbox-virtual.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# do-nothing-event-handler.sh | |
# | |
# return 99 to abort automatic shutdown by apccontrol | |
# | |
echo -e "$0 $(date): doing nothing\a" | |
wall "$0 $(date): doing nothing" | |
logger "$0 $(date): doing nothing" | |
exit 99 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment