Skip to content

Instantly share code, notes, and snippets.

@ckxng
Created June 22, 2015 22:40
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ckxng/a95760ed912c9aec9a8d to your computer and use it in GitHub Desktop.
Save ckxng/a95760ed912c9aec9a8d to your computer and use it in GitHub Desktop.
McMyAdmin SystemD Service
[Unit]
Description=McMyAdmin
[Service]
WorkingDirectory=/home/minecraft/McMyAdmin
User=minecraft
ExecStart=/usr/bin/screen -DmS mc-mcma ./MCMA2_Linux_x86_64
ExecStop=/usr/bin/screen -p 0 -S mc-mcma -X eval 'stuff "/quit"\\015'
ExecStop=/bin/sleep 10
[Install]
WantedBy=multi-user.target
@eddriesen
Copy link

Joink!
Thanks

@okay-scam
Copy link

Legend, thanks.

@marecatg
Copy link

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment