vectordotdev / vectordotdev/vector

Add reload subcommand

Open
#541 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

domain: cli domain: reload have: should
Dominant language
Rust
Stars
22.6k
Forks
2.3k
Avg merge
1d 7h
Merged PRs (30d)
146

Description

We need a snychronous sub-command that reloads configuration. From the systemd docs:

Note however that reloading a daemon by sending a signal (as with the example line above) is usually not a good choice, because this is an asynchronous operation and hence not suitable to order reloads of multiple services against each other. It is strongly recommended to set ExecReload= to a command that not only triggers a configuration reload of the daemon, but also synchronously waits for it to complete.

I assume we can just execute the same path we do when we receive a SIGHUP, but we must wait to respond only after the change is complete.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing SIGHUP handling and the command-dispatch entry point for subcommands. The reload subcommand is done when it follows the same configuration-reload path and does not respond until the reload has completed synchronously.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.