agama/live/root/etc/systemd/system/agama-self-update.service
2024-06-14 12:38:01 +02:00

31 lines
720 B
Desktop File

[Unit]
Description=Agama self-update
After=network-online.target
# before starting the Agama servers so they use the new packages
Before=agama-web-server.service
Before=agama.service
Before=x11-autologin.service
# before interactive password services
Before=live-password-dialog.service
Before=live-password-systemd.service
# kernel command line option
ConditionKernelCommandLine=|agama.self_update
# linuxrc/YaST backward compatibility
ConditionKernelCommandLine=|agama.selfupdate
[Service]
Type=oneshot
Environment=TERM=linux
ExecStartPre=dmesg --console-off
ExecStart=agama-self-update
ExecStartPost=dmesg --console-on
TTYReset=yes
TTYVHangup=yes
StandardInput=tty
TimeoutSec=0
[Install]
WantedBy=default.target