Skip to content

Conversation

julienrbrt
Copy link
Member

@julienrbrt julienrbrt commented Jul 14, 2025

Add helper to easily setup chain serve to run as daemon.
Note, it doesn't fork the process and does anything like this as it wouldn't be Go idiomatic. We should let the shell handle putting the process in background with &.

cc @clockworkgr

@julienrbrt julienrbrt changed the title feat(cmd): add -deamon flag to chain serve feat(cmd): add -daemon flag to chain serve Jul 14, 2025
@julienrbrt julienrbrt marked this pull request as ready for review July 14, 2025 09:57
@julienrbrt julienrbrt requested a review from clockworkgr July 14, 2025 10:58
@clockworkgr
Copy link
Collaborator

what does the daemon flag do exactly? is it --yes and no UI ?

@julienrbrt
Copy link
Member Author

what does the daemon flag do exactly? is it --yes and no UI ?

basically, --yes, --verbose and allow an output file to avoid piping to a file.

@julienrbrt
Copy link
Member Author

i tried to deamonize it, but it involved forking the linux process within go and it felt really hacky.

julienrbrt and others added 2 commits July 15, 2025 09:15
Co-authored-by: Danilo Pantani <danpantani@gmail.com>
@julienrbrt julienrbrt changed the title feat(cmd): add -daemon flag to chain serve feat(cmd): add --output-file flag to chain serve Jul 15, 2025
@julienrbrt julienrbrt merged commit c3ec490 into main Jul 16, 2025
44 checks passed
@julienrbrt julienrbrt deleted the julien/deamon branch July 16, 2025 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:ci CI/CD workflow and automated jobs. component:cmd component:configs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants