Skip to content

Commit

Permalink
Merge pull request #455 from galal-hussein/restart_always_systemd
Browse files Browse the repository at this point in the history
Add Restart=always to systemd unit
  • Loading branch information
erikwilson authored May 24, 2019
2 parents 4b4dd1b + 8188bc6 commit 03885fc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
TimeoutStartSec=0
Restart=always

[Install]
WantedBy=multi-user.target
Expand Down
2 changes: 2 additions & 0 deletions contrib/ansible/roles/k3s/master/templates/k3s.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
Restart=always

[Install]
WantedBy=multi-user.target
1 change: 1 addition & 0 deletions contrib/ansible/roles/k3s/node/templates/k3s.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
Restart=always
[Install]
WantedBy=multi-user.target
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
TimeoutStartSec=0
Restart=always
[Install]
WantedBy=multi-user.target
Expand Down
1 change: 1 addition & 0 deletions k3s.service
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
TimeoutStartSec=0
Restart=always

[Install]
WantedBy=multi-user.target

0 comments on commit 03885fc

Please sign in to comment.