mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
units: direct stdout/stderr of rescue shells to tty
With output of services going to syslog by default now, the rescue shell units need to direct their output to tty explicitly. Specify stderr too, just in case.
This commit is contained in:
parent
d6bca18e28
commit
cbe8269481
@ -31,6 +31,8 @@ WorkingDirectory=/root
|
||||
ExecStart=-/sbin/sulogin
|
||||
ExecStopPost=-/bin/systemctl poweroff
|
||||
StandardInput=tty-force
|
||||
StandardOutput=inherit
|
||||
StandardError=inherit
|
||||
KillMode=process
|
||||
|
||||
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
|
||||
|
@ -21,6 +21,8 @@ ExecStartPre=-/bin/echo 'Welcome to emergency mode. Use "systemctl default" or ^
|
||||
ExecStart=-/sbin/sulogin
|
||||
ExecStopPost=/bin/systemctl --fail --no-block default
|
||||
StandardInput=tty-force
|
||||
StandardOutput=inherit
|
||||
StandardError=inherit
|
||||
KillMode=process
|
||||
|
||||
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
|
||||
|
@ -31,6 +31,8 @@ m4_ifdef(`TARGET_MEEGO',
|
||||
ExecStart=-/bin/bash -c "exec ${SINGLE}"',)))
|
||||
ExecStopPost=-/bin/systemctl --fail --no-block default
|
||||
StandardInput=tty-force
|
||||
StandardOutput=inherit
|
||||
StandardError=inherit
|
||||
KillMode=process
|
||||
|
||||
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
|
||||
|
Loading…
Reference in New Issue
Block a user