]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/emergency.service
mount: fix automount regression
[thirdparty/systemd.git] / units / emergency.service
CommitLineData
70449379
LP
1# This file is part of systemd.
2#
70449379
LP
3# systemd is free software; you can redistribute it and/or modify it
4# under the terms of the GNU General Public License as published by
5# the Free Software Foundation; either version 2 of the License, or
6# (at your option) any later version.
70449379 7
9f235308
LP
8# See systemd.special(7) for details
9
09477267 10[Unit]
70fcff31 11Description=Emergency Shell
af65a091 12DefaultDependencies=no
de47ca9b
LP
13Conflicts=shutdown.target
14Before=shutdown.target
70fcff31
LP
15
16[Service]
739848d4 17Environment=HOME=/root
1fd116f7 18WorkingDirectory=/root
be12dd0c 19ExecStartPre=-/bin/plymouth quit
273f54cd 20ExecStartPre=-/bin/echo 'Welcome to emergency mode. Use "systemctl default" or ^D to activate default mode.'
ddad6809 21ExecStart=-/sbin/sulogin
7f62e377 22ExecStopPost=/bin/systemctl --fail --no-block default
f057408c 23StandardInput=tty-force
cbe82694
MS
24StandardOutput=inherit
25StandardError=inherit
cd25cce9 26KillMode=process
31934667 27
30609d9c 28# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
31934667 29# terminates cleanly.
30609d9c 30KillSignal=SIGHUP