startup script - Ubuntu help

Discussion in 'Systems Administration' started by UnknownDexy, Jan 25, 2020.

  1. Hello, I wonder if anyone is good to make startup scripts to ubuntu.
    I want the script look like this
    "
    ram: "3G"

    spigot: "server.jar"
    echo "########################"
    echo "# Control + D #"
    echo "# Close down the server #"
    echo "# Server start in 5 seconds #"
    echo "#########################"
    sleep 2
    echo "##########################"
    echo "# Server starts in 3 seconds #"
    echo sleep 1
    echo "# Server starts in 2 seconds #"
    sleep 1
    echo "# Server starts in 1 second #"
    Sleep 1
    echo "# Server starting #"
    java -Xmx$ram -Xms$ram -jar $spigot
    done
    "
    Anything like this
     
  2. Hey, well to be honest, I think there are already alot of 'startup scripts' out there. A bit of googling will help :)