Skip to content

Instantly share code, notes, and snippets.

@tuklusan
Created September 7, 2021 22:25
Show Gist options
  • Save tuklusan/ac4f44c6f404fb4eb34517c1f1074a8b to your computer and use it in GitHub Desktop.
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
#!/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