chiark / gitweb /
fedora: /bin/plymouth --sysinit is not necessary on shut down
[elogind.git] / units / rescue.service.m4
1 #  This file is part of systemd.
2 #
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.
7
8 # See systemd.special(7) for details
9
10 [Unit]
11 Description=Rescue Shell
12 DefaultDependencies=no
13 Conflicts=shutdown.target
14 After=basic.target
15 Before=shutdown.target
16
17 [Service]
18 Environment=HOME=/root
19 Environment=TERM=vt100-nav
20 WorkingDirectory=/root
21 ExecStartPre=-/bin/plymouth --hide-splash
22 ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" or ^D to activate default mode.'
23 m4_ifdef(`TARGET_FEDORA',
24 `EnvironmentFile=/etc/sysconfig/init
25 ExecStart=-/bin/bash -c "exec ${SINGLE}"',
26 `ExecStart=-/sbin/sulogin')
27 ExecStopPost=/bin/systemctl default
28 StandardInput=tty-force
29 KillMode=process-group
30
31 # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
32 # terminates cleanly.
33 KillSignal=SIGHUP