Minecraft Module Bug here? If not... where?
Start at boot generates an upstart script on Ubuntu 13.10 that yields the following error:
"/bin/sh: 1: /bin/sh: Syntax error: "(" unexpected"
Server (naturally) does not start.
Replacing first set of (...) with [...] works for me.
Could you attach the upstart script to this bug report? It should be at /etc/init/minecraft.conf
Yes, of course.
That file actually looks OK.
When do you see the error message :
"/bin/sh: 1: /bin/sh: Syntax error: "(" unexpected"
Error given in /var/log/upstart/minecraft
Occurs after boot when no server starts and when service is invoked manually and then fails, either from terminal or within Webmin from "System -> Bootup & Shutdown"
Server starts fine from main minecraft screen but not at boot or via upstart manually. Upstart (or dash v 0.5.7?) does not like that "(". Solution is beyond me...
Last edit: ryates 2013-11-19
What if you edit that minecraft.conf file and change :
exec su nobody
to :
exec su -s /bin/sh nobody
This failed.
Upstart log gave same error.
Is this a dash /bash shell issue?
Last edit: ryates 2013-11-21
Also, what if you run the command from minecraft.conf (after the exec) as root at the shell.... does it start the server?
Indeed it does.
Ok, the next release of the Minecraft plugin will work around this problem by using a wrapper script to start the server.