-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support toggling servers on/off in configuration (#594)
This also fixes a bug in the git daemon which would listen on TCP as it was created. Now it only listens when Start() has been called. To facilitate testing of this, tests now use the more granular `ensureserverrunning [SERVICE_NAME]` instead of the previous, more crude `waitforserver`.
- Loading branch information
Jonatan Wallmander
committed
Nov 19, 2024
1 parent
682dccb
commit 980acf4
Showing
30 changed files
with
263 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# vi: set ft=conf | ||
|
||
# disable git listening | ||
env SOFT_SERVE_SSH_ENABLED=true | ||
env SOFT_SERVE_GIT_ENABLED=false | ||
env SOFT_SERVE_HTTP_ENABLED=true | ||
env SOFT_SERVE_STATS_ENABLED=true | ||
|
||
# start soft serve | ||
exec soft serve --sync-hooks & | ||
|
||
# wait for the ssh + other servers to come up | ||
ensureserverrunning SSH_PORT | ||
ensureserverrunning HTTP_PORT | ||
ensureserverrunning STATS_PORT | ||
|
||
# ensure that the disabled server is not running | ||
ensureservernotrunning GIT_PORT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# vi: set ft=conf | ||
|
||
# disable http listening | ||
env SOFT_SERVE_SSH_ENABLED=true | ||
env SOFT_SERVE_GIT_ENABLED=true | ||
env SOFT_SERVE_HTTP_ENABLED=false | ||
env SOFT_SERVE_STATS_ENABLED=true | ||
|
||
# start soft serve | ||
exec soft serve --sync-hooks & | ||
|
||
# wait for the ssh + other servers to come up | ||
ensureserverrunning SSH_PORT | ||
ensureserverrunning GIT_PORT | ||
ensureserverrunning STATS_PORT | ||
|
||
# ensure that the disabled server is not running | ||
ensureservernotrunning HTTP_PORT | ||
|
Oops, something went wrong.