Server Management Script

    Joined
    Aug 6, 2013
    Messages
    22
    Reaction score
    1
    StarMade Management Script v0.5

    This Script allows a User to run a single StarMade Server
    In this version the Script has following features

    -Starting and stopping your StarMade Server
    -Backing up your StarMade Server as a whole
    -Deploying old installs from backups
    -Updating your StarMade Server to the latest version
    -Checking the current version of your StarMade Server
    -Checking version of your backups
    -Executing Commands from the console, without being ingame
    -Failsafe execution of commands
    -Cronjob capability



    Setup

    The Script requires the StarMade-Starter-v9.jar to be
    in the same directory as the Script.
    The folder containing your StarMade Server must be named
    StarMade ;Note: The name is Case Sensitive!

    First run the StarMade-Starter-v9.jar using:
    java -jar StarMade-Starter-v9.jar -nogui

    Let the Program create an initial install of your Server
    everything will then be handled by the Script

    If you already have a StarMade Server make sure the folder
    is named StarMade ;Note: The name is Case Sensitive!
    All Serverfiles must be in that folder e.g. StarMade.jar

    The Script needs to know the User you are using to run
    your StarMade Server on. It also needs to know your
    Home-Directory, if it isn't /home/yourusername

    By default the Script will attempt to run your StarMade
    Server with 2048MB initial Memory and 8192MB maximum Memory

    To adjust these settings open the script with a Texteditor
    and change the variables under Settings at the top

    NOTE: The Script does not control the Port your StarMade
    Server is running on. Please adjust the Port in the
    server.cfg inside the StarMade folder!

    To setup multiple Servers please make multiple users
    on your machine to ensure you are not running into
    the user limits running many Servers on the same user



    Commands for the Script

    start Starts the StarMade Server
    stop Stops the StarMader Server
    restart Restarts the StarMade Server
    status Reports back the status of your StarMade Server
    backup Backs up your current StarMade Server Install
    deploy Deploys install from specified backup
    Folder must be specified in \"\"
    update Updates your Server to the latest Version
    version Displays you the current Server Version
    versionof Displays version of given backup
    Folder must be specified in \"\"
    command Allows you to execute admin commands from
    the console, must be in \"\"
    --help Displays Readme



    Script created by TampaPowers
    Testing, Consulting & telling me it's fucked - NBGZerO

    Released as is under
    (DWYWWIBGC)Do-What-You-Want-With-It-But-Give-Credit

    If it breaks your stuff, you're using it wrong!

    Download:
    http://two66.com/starmade.sh
     
    • Like
    Reactions: der_scheme
    Joined
    Jun 20, 2013
    Messages
    293
    Reaction score
    48
    • Purchased!
    You should convert this to an init script and remove the need for the StarmadeStarter. If you need help with removing the StarmadeStarter I have a bit of code that does it in my wrapper.
     
    Joined
    Aug 6, 2013
    Messages
    22
    Reaction score
    1
    I like to keep things modular, that's why it's no init script. I briefly thought about ditching the starter, but then again I don't want to include anything that directly interacts with the StarMade Services. Trying to keep it as self contained as possible so it doesn't pose a security risk.
    If you feel like you need to make these changes, feel free too. I'm just posting this cause I successfully use it for my own server, so why keep it for myself.