Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{WIP} Write (some of the) command line options to a configuration file. #271

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dimitri
Copy link
Owner

@dimitri dimitri commented Apr 28, 2023

This allows to later review how the command was run, and more importantly editing the configuration file (via new commands, not implemented yet) and signal the already running pgcopydb to dynamically apply new settings.

See #224

@dimitri dimitri force-pushed the feature/config-file branch from 72f86b6 to 9b0e098 Compare May 2, 2023 14:38
dimitri added 3 commits May 12, 2023 11:02
This allows to later review how the command was run, and more importantly
editing the configuration file (via new commands, not implemented yet) and
signal the already running pgcopydb to dynamically apply new settings.
Those commands only work when the config.ini file can be found on-disk,
which is to say when a pgcopydb command has been started already. The
commands allow to review and edit the current settings being used.

At the moment editing the values still has no impact on the running
processes.
The configuration is written to file and can be edited with the new command
pgcopydb config set; now this command also signals the running process with
SIGHUP and the config file can be read and applied on-the-fly.
@dimitri dimitri force-pushed the feature/config-file branch from 9b0e098 to 5942b10 Compare May 12, 2023 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant