mirror of https://github.com/k3s-io/k3s
Merge pull request #965 from erikwilson/systemd-service-cleanup
Cleanup systemd service filepull/967/head
commit
33f6a4e683
17
install.sh
17
install.sh
|
@ -579,16 +579,14 @@ create_systemd_service_file() {
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Lightweight Kubernetes
|
Description=Lightweight Kubernetes
|
||||||
Documentation=https://k3s.io
|
Documentation=https://k3s.io
|
||||||
After=network-online.target
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=${SYSTEMD_TYPE}
|
Type=${SYSTEMD_TYPE}
|
||||||
EnvironmentFile=${FILE_K3S_ENV}
|
EnvironmentFile=${FILE_K3S_ENV}
|
||||||
ExecStartPre=-/sbin/modprobe br_netfilter
|
|
||||||
ExecStartPre=-/sbin/modprobe overlay
|
|
||||||
ExecStart=${BIN_DIR}/k3s \\
|
|
||||||
${CMD_K3S_EXEC}
|
|
||||||
|
|
||||||
KillMode=process
|
KillMode=process
|
||||||
Delegate=yes
|
Delegate=yes
|
||||||
LimitNOFILE=infinity
|
LimitNOFILE=infinity
|
||||||
|
@ -598,9 +596,10 @@ TasksMax=infinity
|
||||||
TimeoutStartSec=0
|
TimeoutStartSec=0
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5s
|
RestartSec=5s
|
||||||
|
ExecStartPre=-/sbin/modprobe br_netfilter
|
||||||
[Install]
|
ExecStartPre=-/sbin/modprobe overlay
|
||||||
WantedBy=multi-user.target
|
ExecStart=${BIN_DIR}/k3s \\
|
||||||
|
${CMD_K3S_EXEC}
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue