Added first draft for a systemd-unitfile in the contrib #246
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I know, this file is not perfect, but it works.
I think the problem with the busyserve command is that it sends no "Success"-signal back to the main process, thats why I added the screen-command. I did this with many proprietary gameservers hosted on linux and thats fine, at least for me. Update / Improve if you wish.
The ExecStartPost can be customized to anyone's wishes of course, I added the retry and connect-timeout parameters because the Port is not available immediately at the time of EcexStartPost execution.
Also the ExecStartPost starts the busylight with slow rainbow effects which I liked!
I did not want to add a bash script (which sleeps a short time and then curls the server), but that were possible, too.
This file can be copied to
/usr/lib/systemd/system/
or/etc/systemd/system/
.This PR also kind of resolveds #84