Skip to content

Instantly share code, notes, and snippets.

@siriusfinex
Last active February 25, 2019 04:42
Show Gist options
  • Save siriusfinex/492430332533f6f1c4b273ef33935e18 to your computer and use it in GitHub Desktop.
Save siriusfinex/492430332533f6f1c4b273ef33935e18 to your computer and use it in GitHub Desktop.
#! /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