Last active
February 25, 2019 04:42
-
-
Save siriusfinex/492430332533f6f1c4b273ef33935e18 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
#! /bin/bash | |
#write ulimit value to supervisor | |
echo "ulimit -n 51200" >> /etc/default/supervisor && | |
service stop supervisor && service start supervisor | |
#fix ssmgr-tiny restart rule in crontab | |
sed -i 's#reload#restart\ ssmgt-tiny#g' /etc/crontab | |
#setting server reboot time | |
echo "5 5 25 2 1 root reboot" >> /etc/crontab && | |
service cron reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment