05-06-2015, 05:17 PM
(05-05-2015, 09:22 PM)Safwat Wrote: Approach 2, boot at system boot (but no interactive window)
- edit /etc/rc.local, note that you must be root to edit that, possible commands that achieve this are sudo leafpad /etc/rc.local or sudo nano /etc/rc.local
- Put the following inside, just above the last line which is exit 0
Code:sudo -u pi -- "PATH TO THE MCSERVER EXECUTABLE" & disown
Note that all double-quotes are to be kept, the only thing you need to modify is the uppercase PATH TO THE MCSERVER EXECUTABLE
Normally I would set up a user for such a service e.g. user minecraft - Hence I will try with:
Code:
-u minecraft -- "/home/minecraft/MCServer/MCServer" & disown
correct me if I'm wrong here?