mirror of
https://github.com/kairos-io/packages.git
synced 2025-09-19 10:46:22 +00:00
set kairos services to simple (#970)
If they are of type oneshot, systemd will wait until the pid exits before markling the service as running. Instead it will mark them as starting which is wrong and on livecd it causes the systemctl status output to be on starting forever. Instead lets set those services to simple, which means they will be marked as started once the binary has been launched. Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
packages:
|
||||
- name: "kairos-overlay-files"
|
||||
category: "static"
|
||||
version: "1.1.41"
|
||||
version: "1.1.42"
|
||||
|
@@ -1,7 +1,8 @@
|
||||
[Unit]
|
||||
Description=kairos interactive-installer
|
||||
After=sysinit.target
|
||||
After=multi-user.target
|
||||
[Service]
|
||||
## Dont mark it as running until it finishes
|
||||
Type=oneshot
|
||||
# input/output to tty as its interactive
|
||||
# otherwise it will be silent and with no input
|
||||
@@ -17,5 +18,7 @@ ExecStart=/usr/bin/kairos-agent interactive-install --shell
|
||||
# Start systemd messages on tty
|
||||
ExecStartPost=-/usr/bin/kill -SIGRTMIN+20 1
|
||||
TimeoutStopSec=10s
|
||||
# Restart if it fails, like user doing control+c
|
||||
Restart=on-failure
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@@ -1,8 +1,8 @@
|
||||
[Unit]
|
||||
Description=kairos recovery
|
||||
After=sysinit.target
|
||||
After=multi-user.target
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Type=simple
|
||||
StandardInput=tty
|
||||
StandardOutput=tty
|
||||
LimitNOFILE=49152
|
||||
|
@@ -1,8 +1,8 @@
|
||||
[Unit]
|
||||
Description=kairos installer
|
||||
After=sysinit.target
|
||||
After=multi-user.target
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Type=simple
|
||||
StandardInput=tty
|
||||
StandardOutput=tty
|
||||
LimitNOFILE=49152
|
||||
|
Reference in New Issue
Block a user