Server Management Script [Linux]

    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 the 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
     
    Joined
    Aug 6, 2013
    Messages
    22
    Reaction score
    1
    v0.6

    -Added check to allow a more stable way of deploying backups to the right directory

    -Removed some unnecessary spaces

    -Deployment now tested and working
     
    Joined
    Aug 15, 2013
    Messages
    2
    Reaction score
    0
    • Legacy Citizen
    And yeah you wrote this in windows right, i used dos2unix to get it too work :D
     
    Joined
    Aug 6, 2013
    Messages
    22
    Reaction score
    1
    I wrote in notepad++ and translated to unix format, because otherwise shell will not work on Linux. Works perfectly on my Debian6 server.