#4322 minecraft upstart script

Other
closed-fixed
nobody
None
5
2013-11-21
2013-11-19
ryates
No

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.

Discussion

  • Jamie Cameron

    Jamie Cameron - 2013-11-19

    Could you attach the upstart script to this bug report? It should be at /etc/init/minecraft.conf

     
  • ryates

    ryates - 2013-11-19

    Yes, of course.

     
  • Jamie Cameron

    Jamie Cameron - 2013-11-19

    That file actually looks OK.

    When do you see the error message :

    "/bin/sh: 1: /bin/sh: Syntax error: "(" unexpected"

     
    • ryates

      ryates - 2013-11-19

      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
  • Jamie Cameron

    Jamie Cameron - 2013-11-20

    What if you edit that minecraft.conf file and change :

    exec su nobody

    to :

    exec su -s /bin/sh nobody

     
    • ryates

      ryates - 2013-11-21

      This failed.

      Upstart log gave same error.

      Is this a dash /bash shell issue?

       
      Last edit: ryates 2013-11-21
  • Jamie Cameron

    Jamie Cameron - 2013-11-20

    Also, what if you run the command from minecraft.conf (after the exec) as root at the shell.... does it start the server?

     
    • ryates

      ryates - 2013-11-21

      Indeed it does.

       
  • Jamie Cameron

    Jamie Cameron - 2013-11-21

    Ok, the next release of the Minecraft plugin will work around this problem by using a wrapper script to start the server.

     
  • Jamie Cameron

    Jamie Cameron - 2013-11-21
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks