05-12-2015, 02:23 AM
(This post was last modified: 05-12-2015, 02:32 AM by LogicParrot.)
(05-12-2015, 01:43 AM)denbertuz Wrote: I'll go for the screen solution as it's also very flexible - anyone got at a example for a screen start command?
I have written a complete guide for tmux. Tmux and Screen both achieve your needs, but I like Tmux more so the guide is about Tmux.
If you want screen, just follow the same guide, with the following changes:
in /etc/rc.local, you use this line instead:
Code:
su - minecraft -c 'screen -S minecraft -d -m PATH TO MCSERVER'
For attaching, you use this instead:
Code:
screen -x
For detaching, you use this instead:
Code:
Ctrl+a , d
Fixed first command.