]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/emergency.service
systemctl: require correctly formed unit names when enabling units
[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
70fcff31
LP
13
14[Service]
739848d4 15Environment=HOME=/root
1fd116f7 16WorkingDirectory=/root
f057408c
LP
17ExecStartPre=-/bin/plymouth --hide-splash
18ExecStartPre=-/bin/echo 'Welcome to emergency mode. Use "systemctl default" to activate default mode.'
ddad6809 19ExecStart=-/sbin/sulogin
f057408c 20StandardInput=tty-force
525ee6f4 21Restart=always
70fcff31 22RestartSec=0
1f48cf56 23KillMode=process-group
31934667 24
30609d9c 25# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
31934667 26# terminates cleanly.
30609d9c 27KillSignal=SIGHUP