mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
units: don't block on terminating agents
Terminating the plymouth/console agents when the wall agent takes over can happen asynchronously, after all the pw queries are async anyway and hence can be seen by both the plymouth/console agents and the wall agent. By stopping the two agents with "--no-block" we add a bit of robustness, since trouble of them exiting won't block the wall agent to start. This addresses the issue the previous commit fixes in a different way.
This commit is contained in:
@@ -13,7 +13,7 @@ Documentation=man:systemd-ask-password-wall.service(8)
|
||||
After=systemd-user-sessions.service
|
||||
|
||||
[Service]
|
||||
ExecStartPre=-systemctl stop systemd-ask-password-console.path systemd-ask-password-console.service systemd-ask-password-plymouth.path systemd-ask-password-plymouth.service
|
||||
ExecStartPre=-systemctl stop --no-block systemd-ask-password-console.path systemd-ask-password-console.service systemd-ask-password-plymouth.path systemd-ask-password-plymouth.service
|
||||
ExecStart=systemd-tty-ask-password-agent --wall
|
||||
Type=notify
|
||||
SystemCallArchitectures=native
|
||||
|
||||
Reference in New Issue
Block a user