]> git.ipfire.org Git - thirdparty/systemd.git/blame_incremental - units/rescue.service.m4.in
relicense to LGPLv2.1 (with exceptions)
[thirdparty/systemd.git] / units / rescue.service.m4.in
... / ...
CommitLineData
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 Lesser General Public License as published by
5# the Free Software Foundation; either version 2.1 of the License, or
6# (at your option) any later version.
7
8# See systemd.special(7) for details
9
10[Unit]
11Description=Rescue Shell
12DefaultDependencies=no
13Conflicts=shutdown.target
14After=basic.target plymouth-start.service
15Before=shutdown.target
16
17[Service]
18Environment=HOME=/root
19WorkingDirectory=/root
20ExecStartPre=-/bin/plymouth quit
21ExecStartPre=-/bin/echo -e 'Welcome to rescue mode! Type "systemctl default" or ^D to enter default mode.\\nType "journalctl" to view system logs. Type "systemctl reboot" to reboot.'
22m4_ifdef(`TARGET_FEDORA',
23`EnvironmentFile=/etc/sysconfig/init
24ExecStart=-/bin/bash -c "exec ${SINGLE}"',
25m4_ifdef(`TARGET_MANDRIVA',
26`EnvironmentFile=/etc/sysconfig/init
27ExecStart=-/bin/bash -c "exec ${SINGLE}"',
28m4_ifdef(`TARGET_MAGEIA',
29`EnvironmentFile=/etc/sysconfig/init
30ExecStart=-/bin/bash -c "exec ${SINGLE}"',
31m4_ifdef(`TARGET_MEEGO',
32`EnvironmentFile=/etc/sysconfig/init
33ExecStart=-/bin/bash -c "exec ${SINGLE}"',
34`ExecStart=-/sbin/sulogin'))))
35ExecStopPost=-@SYSTEMCTL@ --fail --no-block default
36StandardInput=tty-force
37StandardOutput=inherit
38StandardError=inherit
39KillMode=process
40
41# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
42# terminates cleanly.
43KillSignal=SIGHUP