Last active
April 1, 2018 16:16
-
-
Save devNoiseConsulting/a9b066141b007387bcb0327875e43bd9 to your computer and use it in GitHub Desktop.
nukeItFromOrbit.sh - Script to kill processes and start them up again. "It’s the only way to be sure."
This file contains hidden or 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/sh | |
| ps -ef | egrep "\.py|\./run" | cut -b10-15 | xargs kill -9 | |
| sleep 1 | |
| sudo systemctl restart mysql | |
| sleep 1 | |
| cd ~/PoGoMap/ | |
| nohup ./run1.sh 2>&1 >/dev/null & | |
| sleep 1 | |
| nohup ./run.sh 2>&1 >/dev/null & | |
| sleep 1 | |
| cd ~/PokeAlarm/ | |
| nohup ./run.sh 2>&1 >/dev/null & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment