Switch service to oneshot and start commands with multiple ExecStart

This commit is contained in:
Igor Pecovnik 2024-02-26 13:22:54 +01:00 committed by Igor
parent ba98f67229
commit b1c2792aae

View File

@ -2,8 +2,8 @@
Description=Disable automated desktop login
[Service]
Type=simple
ExecStart=rm -f /etc/lightdm/lightdm.conf.d/22-armbian-autologin.conf
ExecStartPost=rm -f /etc/sddm.conf.d/autologin.conf
TimeoutStopSec= 10
Type=oneshot
ExecStart=-rm -f /etc/lightdm/lightdm.conf.d/22-armbian-autologin.conf
ExecStart=-rm -f /etc/sddm.conf.d/autologin.conf
TimeoutStopSec=10
ExecStop=systemctl disable armbian-disable-autologin.timer