Skip to content

Commit 20beca4

Browse files
Merge pull request #531 from runejuhl/fix-456-systemd-options
Move StartLimit* options to [Unit], fix StartLimitIntervalSec
2 parents e706c2f + 2675ed7 commit 20beca4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/etc/systemd/system/docker-run.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ Description=Daemon for <%= @title %>
1717
After=<%= @after.uniq.join(" ") %>
1818
Wants=<%= @wants.uniq.join(" ") %>
1919
Requires=<%= @requires.uniq.join(" ") %>
20+
StartLimitIntervalSec=20
21+
StartLimitBurst=5
2022

2123
[Service]
2224
Restart=<%= @systemd_restart %>
23-
StartLimitInterval=20
24-
StartLimitBurst=5
2525
TimeoutStartSec=0
2626
RestartSec=5
2727
Environment="HOME=/root"

0 commit comments

Comments
 (0)