Skip to content

Commit

Permalink
enhancement(service): systemd service restart always (vectordotdev#16822
Browse files Browse the repository at this point in the history
)

* add restart always

* apply suggestion

Co-authored-by: Spencer Gilbert <[email protected]>

* apply suggestion

Co-authored-by: Spencer Gilbert <[email protected]>

* apply suggestion

Co-authored-by: Spencer Gilbert <[email protected]>

---------

Co-authored-by: Spencer Gilbert <[email protected]>
  • Loading branch information
KannarFr and spencergilbert authored Mar 20, 2023
1 parent 9cbb491 commit 1e848f6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions distribution/systemd/vector.service
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ ExecStartPre=/usr/bin/vector validate
ExecStart=/usr/bin/vector
ExecReload=/usr/bin/vector validate
ExecReload=/bin/kill -HUP $MAINPID
Restart=no
Restart=always
AmbientCapabilities=CAP_NET_BIND_SERVICE
EnvironmentFile=-/etc/default/vector

# Since systemd 229, should be in [Unit] but in order to support systemd <229,
# it is also supported to have it here.
StartLimitInterval=10
StartLimitBurst=5
[Install]
WantedBy=multi-user.target

0 comments on commit 1e848f6

Please sign in to comment.