Using linux service starter on wiki

Discussion in 'Bukkit Discussion' started by VicToMeyeZR, Sep 21, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    VicToMeyeZR

    I have a question about the service script posted on the wiki.

    I got every setup and running correctly as a service, but I can't get the screen resume function to work, so I can get into the server console.

    The user is minecraft that the service starts under, so I am curious what I am doing wrong.

    Anyone use this have any ideas? Is this not something that will work SSH?
    It even shows running in the service screen
     
  2. Offline

    rmb938

    Odd. try screen -dr
     
  3. Offline

    VicToMeyeZR

    That says there is no screen running in detached mode.
     
  4. Offline

    Wannab

    when you run minecraft from screen use screen -S namewhatever ./commandtorunminecraft

    for me when i am in ssh the command look like this "screen -S mcserver ./rtoolkit.sh"

    then the next time i am in ssh, if i am only running one instance of screen screen -r restores that one session

    if you have multiple screen sessions running you must state which screen you want to use, which is why you name the sessions with -S

    so then the command would look like this "screen -r mcserver"
     
  5. Offline

    VicToMeyeZR

    Only problem, when I try to use any switch other than the -dmS I get this :
     
  6. Offline

    Wannab

    have you been able to stop screen and try starting over again?
     
  7. Offline

    VicToMeyeZR

    The screen starts automatically with the #service minecraft start . I have not tried to do this manually no.
     
  8. Offline

    Wannab

    im not sure then, i always start screen manually. try to start it manually, if it works that way, then there is something configured wrong in your script, if you could point me to the script so i could look at it that may help, im not sure what you downloaded

    edit
    i think i found the script, it was a very small link, probably why i missed it before, it looks to be about 400 lines, i havent look through it thoroughly, it also looks like benni-chan was the last person to update it so maybe you could find a way to consult with him. for now i would just start mc through screen manually. on my server i have remote toolkit installed, you can set the wrapper properties however you like with it
     
  9. Offline

    VicToMeyeZR

  10. Offline

    Drength

    I think it is a permissions problem...when I had this problem I think this helped...
     
  11. Offline

    VicToMeyeZR

    Well that fixed the manual screen part, but nothing with that screen and the service.

    Its ok. its not biggy
     
  12. Offline

    md_5

    Running on wrong user. Login or su as minecraft before trying that. I use that script, and tweaked it a bit
     
Thread Status:
Not open for further replies.

Share This Page