Skip to content

Commit

Permalink
fix(deployment): #22264 add --no-environment to systemd service fil…
Browse files Browse the repository at this point in the history
…e at `ExecReload` (#22279)

* fix #22264

* add changelog
  • Loading branch information
rsrdesarrollo authored Jan 23, 2025
1 parent 17d14d3 commit b890bf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.d/22279_systemd_service_reload.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The systemd service now validates the config with parameter `--no-environment` on service reload.

authors: rsrdesarrollo
2 changes: 1 addition & 1 deletion distribution/systemd/vector.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ User=vector
Group=vector
ExecStartPre=/usr/bin/vector validate
ExecStart=/usr/bin/vector
ExecReload=/usr/bin/vector validate
ExecReload=/usr/bin/vector validate --no-environment
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
AmbientCapabilities=CAP_NET_BIND_SERVICE
Expand Down

0 comments on commit b890bf6

Please sign in to comment.