]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/emergency.service.in
bash-completion: add 'gdb' verb for coredumpctl
[thirdparty/systemd.git] / units / emergency.service.in
CommitLineData
70449379
LP
1# This file is part of systemd.
2#
70449379 3# systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
4# under the terms of the GNU Lesser General Public License as published by
5# the Free Software Foundation; either version 2.1 of the License, or
70449379 6# (at your option) any later version.
70449379 7
09477267 8[Unit]
70fcff31 9Description=Emergency Shell
744881d1 10Documentation=man:sulogin(8)
af65a091 11DefaultDependencies=no
de47ca9b
LP
12Conflicts=shutdown.target
13Before=shutdown.target
70fcff31
LP
14
15[Service]
739848d4 16Environment=HOME=/root
1fd116f7 17WorkingDirectory=/root
be12dd0c 18ExecStartPre=-/bin/plymouth quit
aa6eba40 19ExecStartPre=-/bin/echo -e 'Welcome to emergency mode! After logging in, type "journalctl -b" to view\\nsystem logs, "systemctl reboot" to reboot, "systemctl default" to try again\\nto boot into default mode.'
ddad6809 20ExecStart=-/sbin/sulogin
9cf25786 21ExecStopPost=@SYSTEMCTL@ --fail --no-block default
f2b68789 22Type=idle
f057408c 23StandardInput=tty-force
cbe82694
MS
24StandardOutput=inherit
25StandardError=inherit
cd25cce9 26KillMode=process
353e12c2 27IgnoreSIGPIPE=no
31934667 28
30609d9c 29# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
31934667 30# terminates cleanly.
30609d9c 31KillSignal=SIGHUP