I'm sharing all scripts that I have written for my StarMade server, with launch commands and other goodies. There are four scripts. Let me tell you what they are for and how to use them.
Main features
Alternatives
When I was creating this thread I could not find any server scripts. Now there are some scripts around and I'd like to give them some advertising space here. My script is probably not what you are looking for if you need a finished user frindly server script.
StarMade control panel - Loads of useful tools with nice interface
StarMade Server Script for Ubuntu - Minecraft style server script ported for StarMade
Scripts
start.sh starts the server process and restarts it if the process goes down. It also keeps a log about its own actions.
run echoes the command that starts the server process so the start script can run it. Start command is stored to a separate script so you don't need to kill the start script if you want to try a different command to launch the server.
update.sh updates the server.
probe.sh monitors and logs the server state. It also kills the server process (so the start script can start the server again) if the the server reports its status offline. Server state and player amount resolution methods are similar to those that starmade-servers.com uses. Probe reads a 'status' file written by update and start scripts for better server state resolution.
Probe should be always tested after server update as it may easily get broken. You will need to modify the probe if your server supports over 255 players.
Setup
Untar: tar -zxvf starmadeServerScripts.tar.gz
Copy starmadeServerScripts/* to your server directory where the StarMade and StarMade-Starter.jar are located. Change directory to your server directory.
Make a softlink to the StarMade directory: ln -s StarMade server
Requirements
Linux with bash and other typical stuff.
rlwrap: Defined in the run script for better server console. You can as well delete rlwrap from the run command.
nice and ionice: Defined in the run script for server performance. You can as well delete these from the run command.
netcat, tail and awk: Required for probe functionality.
wget: Required to use the update script.
Usage
Run the server by launching start.sh in screen. The start script runs the server in forground and the probe in background. You can comment the probe out to not run in or to run it separately. You can monitor the scripts from log files created in the server log directory.
You may want to keep the probe on even when you shut down the server script. You can comment the probe script off from the start script and just launch it in a separate screen/process.
Important
Probe can kill the server process. Use start and update scripts so the killing functionality works as intended. Probe can kill any Java process originating from the server directory or below.
Downloads
http://mikuz.org/random/starmade/starmadeServerScripts_v1.0.tar.gz
http://mikuz.org/random/starmade/starmadeServerScripts_v1.1.tar.gz
These scripts are released in spirit of sharing rather than as software distribution. I do not take responsibility for any damage they may cause.
Changelog
v1.1 - 20.10.2013
Main features
- Automatic server restarting
- Handling of some server lockdowns
- Logging of server state and player count
Alternatives
When I was creating this thread I could not find any server scripts. Now there are some scripts around and I'd like to give them some advertising space here. My script is probably not what you are looking for if you need a finished user frindly server script.
StarMade control panel - Loads of useful tools with nice interface
StarMade Server Script for Ubuntu - Minecraft style server script ported for StarMade
Scripts
start.sh starts the server process and restarts it if the process goes down. It also keeps a log about its own actions.
run echoes the command that starts the server process so the start script can run it. Start command is stored to a separate script so you don't need to kill the start script if you want to try a different command to launch the server.
update.sh updates the server.
probe.sh monitors and logs the server state. It also kills the server process (so the start script can start the server again) if the the server reports its status offline. Server state and player amount resolution methods are similar to those that starmade-servers.com uses. Probe reads a 'status' file written by update and start scripts for better server state resolution.
Probe should be always tested after server update as it may easily get broken. You will need to modify the probe if your server supports over 255 players.
Setup
Untar: tar -zxvf starmadeServerScripts.tar.gz
Copy starmadeServerScripts/* to your server directory where the StarMade and StarMade-Starter.jar are located. Change directory to your server directory.
Make a softlink to the StarMade directory: ln -s StarMade server
Requirements
Linux with bash and other typical stuff.
rlwrap: Defined in the run script for better server console. You can as well delete rlwrap from the run command.
nice and ionice: Defined in the run script for server performance. You can as well delete these from the run command.
netcat, tail and awk: Required for probe functionality.
wget: Required to use the update script.
Usage
Run the server by launching start.sh in screen. The start script runs the server in forground and the probe in background. You can comment the probe out to not run in or to run it separately. You can monitor the scripts from log files created in the server log directory.
You may want to keep the probe on even when you shut down the server script. You can comment the probe script off from the start script and just launch it in a separate screen/process.
Important
Probe can kill the server process. Use start and update scripts so the killing functionality works as intended. Probe can kill any Java process originating from the server directory or below.
Downloads
http://mikuz.org/random/starmade/starmadeServerScripts_v1.0.tar.gz
http://mikuz.org/random/starmade/starmadeServerScripts_v1.1.tar.gz
These scripts are released in spirit of sharing rather than as software distribution. I do not take responsibility for any damage they may cause.
Changelog
v1.1 - 20.10.2013
- Fix probe serverAlive bug which affected some netcat versions