Created
May 27, 2019 23:49
-
-
Save gvisoc/bb88dc947cf79867b7f196c283b7780c to your computer and use it in GitHub Desktop.
This file contains 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
# upstart config - wipes swap space on shutdown | |
# place in /etc/init | |
description "Wipes swap space on shutdown" | |
start on (runlevel [016] and stopped gdm) | |
script | |
swapoff -a | |
# change /swapfile for your file or device | |
sswap -lz /swapfile | |
end script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment