02-27-2016, 08:46 PM
(02-27-2016, 03:35 PM)Schwertspize Wrote: Sup. Big thanks. Firstly, please don't concatenate such commands with &&.. Use a && sleep 3 && instead.
Secondly, you can concatenate them to one script, never heard of shell functions. So... Finally I will soon post my extended script containing status and update. (cuberite start starts, stop stops, restart both stop and start. Update builds it to .cache/cuberite and runs the CI tests. If that fails, it touches a succeeded file, otherwise not. Cuberite looks at every startup at this file and copies over. (that makes you have minimum downtime, because you can build while cuberite is running AND test that build. Status would drop a "online" command and maybe a performance command to screen and copy the output
I've never been a bash guy, i know the scripts could give someone a stroke and I know are far from optimal, i used them for testing. I'm happy to know you will be extending your script adding more features. I'll check it when is ready.