Feature request: voluntarily server termination #4
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#2 poses the question if the syndicate-server should ever terminate voluntarily. I would like to instruct the server to terminate in the case of testing. I would run an instance of the server after building some programs and configuration, use it to run my programs that produce some output, and then terminate cleanly. I could do this with a long-running init server but I want everything contained within my build system which has an additive-only build graph and I don't want to stop a test by modifying or removing a file once it's been written.
I imagine that termination would be in response to an assertion or message to
$config
like<exit @code int>
.This is a strange request but I've found it helpful for testing recursive init systems. It might also make it possible to use the server as a hacky, reactive, declarative alternative to running a shell script.
Modifying the server could be avoided with a shim that would start the syndicate-server as an inferior and only speak enough of the protocol to kill the server and itself on an exit message.
I like the idea! The shim idea is fine, but seems fiddly; I think, at least for now, a simple message as you suggest would be enough. But instead of sending to
$config
, perhaps there should be a new variable like$control
or similar?How does #5 look as a solution?
This is what I want, and I agree that a separate control entity is better than config.
Cool. Resolved by #5