Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add create swapfile option #16

Open
joejordanbrown opened this issue Mar 2, 2017 · 1 comment
Open

Add create swapfile option #16

joejordanbrown opened this issue Mar 2, 2017 · 1 comment

Comments

@joejordanbrown
Copy link
Contributor

Check for swap file

The server appears to have no swap file. This is usually considered a stability and performance risk. You should either add a swap partition, or create one via a normal file on an existing partition

dd if=/dev/zero of=/swapfile bs=$SWAPFILE_SIZE count=524288
chown root:root /swapfile
chmod 0600 /swapfile
mkswap /swapfile
swapon /swapfile
echo "/swapfile none swap sw 0 0" >> /etc/fstab
@tripflex
Copy link
Owner

I'm certainly open to a PR to add this to the script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants