Restart script and Screens

Discussion in 'Systems Administration' started by SenseiTechUS, Nov 21, 2019.

Thread Status:
Not open for further replies.
  1. Hi,

    I am just setting up a server on Ubuntu and just doing the basic configuration and I've run into a problem. My restart script opens a screen detached and then starts the server in that session. It works for me when I do ./start.sh in my terminal but for some reason, Spigot doesn't run it all the time.

    Code (Text):
    screen -dmS DevServer java -Xms4G -Xmx8G -jar spigot-1.14.4.jar
     
    This works when I do ./start.sh in the terminal but not when I run the restart command on the server

    Code (Text):
    java -Xms4G -Xmx8G -jar spigot-1.14.4.jar
     
    This works when I do ./start.sh as well and when I run the restart command on the server, but it is not in a screen session

    I have no idea why this is happening. I am not an expert when it comes to Ubuntu so it may be something simple that I don't see.

    P.S. I have used this exact start script previously without fail. The only difference between then and now is Im using Java 11 on my ubuntu server, maybe that's the culprit?
     
    #1 SenseiTechUS, Nov 21, 2019
    Last edited: Nov 22, 2019
Thread Status:
Not open for further replies.