19 lines
428 B
SYSTEMD
19 lines
428 B
SYSTEMD
![]() |
[Unit]
|
||
|
Description=Run K3s script
|
||
|
Wants = network-online.target
|
||
|
After = network-online.target
|
||
|
ConditionPathExists=/opt/k3s-agent-install.sh
|
||
|
ConditionPathExists=/var/.k3s-selinux-installed
|
||
|
ConditionPathExists=!/opt/bin/k3s
|
||
|
|
||
|
[Service]
|
||
|
Type=forking
|
||
|
TimeoutStartSec=0
|
||
|
RemainAfterExit=no
|
||
|
KillMode=process
|
||
|
Environment="K3S_TOKEN=${k3s_token}"
|
||
|
ExecStart=/usr/bin/sh -c "/opt/k3s-agent-install.sh"
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|