Created
July 1, 2021 19:11
-
-
Save Jenetrix/3c5f4c190e4513f2afa8fdfecb42bbb9 to your computer and use it in GitHub Desktop.
Starsiege master server launch script
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 | |
###################################### | |
## Starsiege Master Launch Script ## | |
## Authors: Jen & Alyssa ## | |
## Last Modified: 1/26/2019 ## | |
###################################### | |
echo "Launching Master Server" | |
screen -d -S mstrsvr -m wineconsole --backend=curses mstrsvr.exe | |
echo "Wait for 10 seconds" | |
sleep 10 | |
echo "Limiting Master Server" | |
cpulimit -l 3 -p $(ps -e | grep mstrsvr | awk '{print $1}' |head -n 1) & | |
echo "Kill useless wine services" | |
pkill -9 winedevice.exe | |
pkill -9 plugplay.exe | |
pkill -9 explorer.exe | |
pkill -9 services.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment