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

[v15] Configure the systemd unit file RestartSec value #40229

Merged
merged 2 commits into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/systemd/fips/teleport.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ After=network.target
[Service]
Type=simple
Restart=on-failure
RestartSec=5
EnvironmentFile=-/etc/default/teleport
ExecStart=/usr/local/bin/teleport start --config /etc/teleport.yaml --fips --pid-file=/run/teleport.pid
# systemd before 239 needs an absolute path
Expand Down
1 change: 1 addition & 0 deletions examples/systemd/production/auth/teleport.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ After=network.target
[Service]
Type=simple
Restart=on-failure
RestartSec=5
# Set the nodes roles with the `--roles`
# In most production environments you will not
# want to run all three roles on a single host
Expand Down
1 change: 1 addition & 0 deletions examples/systemd/production/node/teleport.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ After=network.target
[Service]
Type=simple
Restart=on-failure
RestartSec=5
# Set the nodes roles with the `--roles`
# In most production environments you will not
# want to run all three roles on a single host
Expand Down
1 change: 1 addition & 0 deletions examples/systemd/production/proxy/teleport.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ After=network.target
[Service]
Type=simple
Restart=on-failure
RestartSec=5
# Set the nodes roles with the `--roles`
# In most production environments you will not
# want to run all three roles on a single host
Expand Down
1 change: 1 addition & 0 deletions examples/systemd/teleport.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ After=network.target
[Service]
Type=simple
Restart=on-failure
RestartSec=5
EnvironmentFile=-/etc/default/teleport
ExecStart=/usr/local/bin/teleport start --config /etc/teleport.yaml --pid-file=/run/teleport.pid
# systemd before 239 needs an absolute path
Expand Down
1 change: 1 addition & 0 deletions lib/config/systemd.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ After=network.target
[Service]
Type=simple
Restart=on-failure
RestartSec=5
EnvironmentFile=-{{ .EnvironmentFile }}
ExecStart={{ .TeleportInstallationFile }} start --config {{ .TeleportConfigPath }} --pid-file={{ .PIDFile }}
# systemd before 239 needs an absolute path
Expand Down
1 change: 1 addition & 0 deletions lib/config/testdata/TestWriteSystemdUnitFile.golden
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ After=network.target
[Service]
Type=simple
Restart=on-failure
RestartSec=5
EnvironmentFile=-/custom/env/dir/teleport
ExecStart=/custom/install/dir/teleport start --config /etc/teleport.yaml --pid-file=/custom/pid/dir/teleport.pid
# systemd before 239 needs an absolute path
Expand Down