Skip to content

Instantly share code, notes, and snippets.

@passcod
Created February 6, 2013 05:10
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 passcod/4720505 to your computer and use it in GitHub Desktop.
Save passcod/4720505 to your computer and use it in GitHub Desktop.
Minecraft Plong Setup
#!/bin/bash
echo "Tmux !!!"
tmux new-session -d /home/mc/launch.sh
[Unit]
Description=Minecraft server
After=network.target
[Service]
Type=forking
EnvironmentFile=/etc/conf.d/minecraft
User=mc
WorkingDirectory=%h
ExecStart=/home/mc/start-mc
ExecStop=/home/mc/stop-mc
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment