02-27-2016, 03:35 PM
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
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