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
#!/bin/bash | |
# Pre-upcp hook which will deny upcp in case the server already has IO, | |
# chef-client, cdp etc. are running..! | |
# Story: https://wwwhosting.atlassian.net/browse/SH-222 | |
# Set limit load avg. for VPS/hardware | |
# Defaults to 6 for VPS and 10 for hardware ones | |
if [[ $(/sbin/lspci | wc -l) -eq 0 ]]; then | |
limit_load=6 |