Skip to content

Instantly share code, notes, and snippets.

@EvilBash0r
EvilBash0r / slowdown-upcp.hook
Created September 22, 2016 19:37 — forked from cPLevey/slowdown-upcp.hook
Site5 cPanel Update "Slowdown" Hook
#!/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