mirror of
https://github.com/systemd/systemd.git
synced 2025-03-13 00:58:27 +03:00
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.
20 lines
770 B
Desktop File
20 lines
770 B
Desktop File
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
#
|
|
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=Forward Password Requests to Wall
|
|
Documentation=man:systemd-ask-password-wall.service(8)
|
|
After=systemd-user-sessions.service
|
|
|
|
[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
|