Extend systemd start timeout for slow systems

Cert generation may cause slow startup times for some systems such as
the Raspberry Pi, set the systemd service TimeoutStartSec to Infinity to
avoid startup timeouts.
This commit is contained in:
Matt Keas 2019-03-13 15:50:52 -05:00 committed by Erik Wilson
parent af2fc722cb
commit f7e0017fed
3 changed files with 5 additions and 0 deletions

View File

@ -265,6 +265,8 @@ Documentation=https://k3s.io
After=network.target
[Service]
Type=notify
EnvironmentFile=/etc/systemd/system/k3s.service.env
ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/local/bin/k3s server
@ -274,6 +276,7 @@ LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
TimeoutStartSec=infinity
[Install]
WantedBy=multi-user.target

View File

@ -402,6 +402,7 @@ LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
TimeoutStartSec=infinity
[Install]
WantedBy=multi-user.target

View File

@ -13,6 +13,7 @@ LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
TimeoutStartSec=infinity
[Install]
WantedBy=multi-user.target