Skip to content

Instantly share code, notes, and snippets.

@salzig
Created July 6, 2016 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salzig/cadb5b9c4d91580ad3bd4a19f7ed899d to your computer and use it in GitHub Desktop.
Save salzig/cadb5b9c4d91580ad3bd4a19f7ed899d to your computer and use it in GitHub Desktop.
#!/bin/bash
FIFO_FILE=factorio.fifo
PID_FILE=factorio.pid
if [ ! -p $FIFO_FILE ]; then
mkfifo $FIFO_FILE
fi
echo $$ > $PID_FILE
exec "/opt/dev/factorio/bin/x64/factorio" "--start-server-load-latest"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment