From 38b50697c10ddfdbb2307d9125a08f01e0f040e6 Mon Sep 17 00:00:00 2001 From: 57_Wolve <57_wolve@private.email> Date: Thu, 15 Jan 2026 13:33:18 +0000 Subject: [PATCH] Update install.sh --- install.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/install.sh b/install.sh index da1be0f..e7ab551 100644 --- a/install.sh +++ b/install.sh @@ -88,6 +88,27 @@ if ! curl -sSL -o /usr/local/bin/tinkerbell https://github.com/tinkerbell/tinker exit 1 else chmod +x /usr/local/bin/tinkerbell + + cat < /etc/systemd/system/tinkerbell.service +[Unit] +Description=Tinkerbell is a bare metal provisioning engine. +After=docker.service + +[Service] +User=root +WorkingDirectory=/etc/tinkerbell +LimitNOFILE=4096 +PIDFile=/var/run/tinkerbell/daemon.pid +ExecStart=/usr/local/bin/tinkerbell +Restart=on-failure +StartLimitInterval=600 + +[Install] +WantedBy=multi-user.target +EOT + +systemctl daemon-reload > /dev/null 2>&1 + fi }