Skip to content

Instantly share code, notes, and snippets.

@tuklusan
Created September 7, 2021 22:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuklusan/b58c61e6dab93aa66c3432957290bf5d to your computer and use it in GitHub Desktop.
Save tuklusan/b58c61e6dab93aa66c3432957290bf5d 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 / clear-kernel-memory-cache.sh: see https://supratim-sanyal.blogspot.com/2021/09/save-state-of-virtualbox-virtual.html
#!/bin/bash
#
# /root/clear-kernel-memory-cache.sh
# See see https://supratim-sanyal.blogspot.com/2021/09/save-state-of-virtualbox-virtual.html
#
sync;sync;sync
echo 3 > /proc/sys/vm/drop_caches
sync;sync;sync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment