chiark / gitweb /
man: document systemd-shutdownd
[elogind.git] / units / rescue.service.m4.in
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 [Unit]
9 Description=Rescue Shell
10 DefaultDependencies=no
11 Conflicts=shutdown.target
12 After=sysinit.target plymouth-start.service
13 Before=shutdown.target
14
15 [Service]
16 Environment=HOME=/root
17 WorkingDirectory=/root
18 ExecStartPre=-/bin/plymouth quit
19 ExecStartPre=-/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.'
20 m4_ifdef(`TARGET_FEDORA',
21 `EnvironmentFile=/etc/sysconfig/init
22 ExecStart=-/bin/bash -c "exec ${SINGLE}"',
23 m4_ifdef(`TARGET_MANDRIVA',
24 `EnvironmentFile=/etc/sysconfig/init
25 ExecStart=-/bin/bash -c "exec ${SINGLE}"',
26 m4_ifdef(`TARGET_MAGEIA',
27 `EnvironmentFile=/etc/sysconfig/init
28 ExecStart=-/bin/bash -c "exec ${SINGLE}"',
29 m4_ifdef(`TARGET_MEEGO',
30 `EnvironmentFile=/etc/sysconfig/init
31 ExecStart=-/bin/bash -c "exec ${SINGLE}"',
32 `ExecStart=-/sbin/sulogin'))))
33 ExecStopPost=-@SYSTEMCTL@ --fail --no-block default
34 Type=idle
35 StandardInput=tty-force
36 StandardOutput=inherit
37 StandardError=inherit
38 KillMode=process
39
40 # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
41 # terminates cleanly.
42 KillSignal=SIGHUP