Created
February 6, 2013 05:10
-
-
Save passcod/4720505 to your computer and use it in GitHub Desktop.
Minecraft Plong Setup
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 | |
echo "Tmux !!!" | |
tmux new-session -d /home/mc/launch.sh |
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
[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