Skip to content

Use an absolute path in ExecReload in teleport.service#39028

Merged
espadolini merged 1 commit intomasterfrom
espadolini/execreload
Mar 6, 2024
Merged

Use an absolute path in ExecReload in teleport.service#39028
espadolini merged 1 commit intomasterfrom
espadolini/execreload

Conversation

@espadolini
Copy link
Copy Markdown
Contributor

@espadolini espadolini commented Mar 6, 2024

In #37773, we changed the ExecReload in the systemd service file to use pkill, but while doing so, we ended up making it a relative path, which is only valid for systemd 239+, while Ubuntu 18.04 uses systemd 237 and CentOS 7 uses systemd 219.

This PR changes ExecReload to use /bin/sh (absolute path) to launch pkill.

Fixes #39001

changelog: fix compatibility of the Teleport service file with older versions of systemd

@espadolini espadolini added this pull request to the merge queue Mar 6, 2024
Merged via the queue into master with commit 46c1e50 Mar 6, 2024
@espadolini espadolini deleted the espadolini/execreload branch March 6, 2024 17:54
@public-teleport-github-review-bot
Copy link
Copy Markdown

@espadolini See the table below for backport results.

Branch Result
branch/v15 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to restart Teleport agent

3 participants