Setting up a server
#38
(05-06-2015, 05:17 PM)denbertuz Wrote:
(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

reinstalled clean raspbian "jessie" - can't invoke it to start MCServer with boot - runs if i start it from terminal - anyone got a clue?

See my [Image: rc_local.png]
Reply
Thanks given by:


Messages In This Thread
Setting up a server - by Wildfire63010 - 11-20-2014, 03:57 AM
RE: Setting up a server - by nouseforname - 11-20-2014, 04:02 AM
RE: Setting up a server - by Wildfire63010 - 11-20-2014, 04:07 AM
RE: Setting up a server - by nouseforname - 11-20-2014, 04:09 AM
RE: Setting up a server - by Wildfire63010 - 11-20-2014, 04:18 AM
RE: Setting up a server - by nouseforname - 11-20-2014, 04:22 AM
RE: Setting up a server - by denbertuz - 05-05-2015, 07:26 PM
RE: Setting up a server - by LogicParrot - 05-05-2015, 08:01 PM
RE: Setting up a server - by LogicParrot - 05-05-2015, 08:19 PM
RE: Setting up a server - by denbertuz - 05-05-2015, 08:20 PM
RE: Setting up a server - by LogicParrot - 05-05-2015, 08:27 PM
RE: Setting up a server - by denbertuz - 05-05-2015, 08:43 PM
RE: Setting up a server - by LogicParrot - 05-05-2015, 09:11 PM
RE: Setting up a server - by denbertuz - 05-05-2015, 09:22 PM
RE: Setting up a server - by NiLSPACE - 05-05-2015, 08:54 PM
RE: Setting up a server - by LogicParrot - 05-05-2015, 09:22 PM
RE: Setting up a server - by denbertuz - 05-06-2015, 05:17 PM
RE: Setting up a server - by LogicParrot - 05-06-2015, 06:16 PM
RE: Automatically startup server with boot - by denbertuz - 05-11-2015, 08:18 PM
RE: Setting up a server - by LogicParrot - 05-05-2015, 09:32 PM
RE: Setting up a server - by xoft - 05-05-2015, 09:45 PM
RE: Setting up a server - by LogicParrot - 05-05-2015, 11:13 PM
RE: Setting up a server - by NiLSPACE - 05-05-2015, 11:40 PM
RE: Setting up a server - by bearbin - 05-06-2015, 02:28 AM
RE: Setting up a server - by denbertuz - 05-06-2015, 07:36 PM
RE: Setting up a server - by tigerw - 05-06-2015, 03:39 AM
RE: Setting up a server - by bearbin - 05-06-2015, 04:00 AM
RE: Setting up a server - by LogicParrot - 05-06-2015, 08:51 PM
RE: Setting up a server - by denbertuz - 05-06-2015, 09:03 PM
RE: Setting up a server - by denbertuz - 05-11-2015, 06:20 PM
RE: Setting up a server - by LogicParrot - 05-09-2015, 09:57 PM
RE: Setting up a server - by LogicParrot - 05-09-2015, 10:43 PM
RE: Setting up a server - by Woazboat - 05-10-2015, 08:22 AM
RE: Setting up a server - by LogicParrot - 05-11-2015, 05:08 PM
RE: Setting up a server - by bearbin - 05-11-2015, 06:08 PM
RE: Setting up a server - by denbertuz - 05-11-2015, 06:35 PM
RE: Setting up a server - by xoft - 05-11-2015, 06:38 PM
RE: Setting up a server - by denbertuz - 05-11-2015, 06:45 PM
RE: Setting up a server - by Seadragon91 - 05-11-2015, 08:52 PM
RE: Setting up a server - by LogicParrot - 05-11-2015, 08:58 PM
RE: Setting up a server - by bearbin - 05-11-2015, 09:04 PM
RE: Setting up a server - by denbertuz - 05-12-2015, 01:43 AM
RE: Setting up a server - by LogicParrot - 05-12-2015, 02:23 AM
RE: Setting up a server - by Jammet - 05-14-2015, 09:20 PM
RE: Setting up a server - by NiLSPACE - 05-14-2015, 09:38 PM
RE: Setting up a server - by Jammet - 05-15-2015, 09:12 AM



Users browsing this thread: 6 Guest(s)