Skip to content

Instantly share code, notes, and snippets.

@Jenetrix
Created July 1, 2021 19:11
Show Gist options
  • Save Jenetrix/3c5f4c190e4513f2afa8fdfecb42bbb9 to your computer and use it in GitHub Desktop.
Save Jenetrix/3c5f4c190e4513f2afa8fdfecb42bbb9 to your computer and use it in GitHub Desktop.
Starsiege master server launch script
#!/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