]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/rescue.service.m4
mount: pull in quota tools from fstab lines with 'quota' option, too
[thirdparty/systemd.git] / units / rescue.service.m4
CommitLineData
0667db89
LP
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]
11Description=Rescue Shell
12DefaultDependencies=no
de47ca9b 13Conflicts=shutdown.target
9524600e 14After=basic.target
de47ca9b 15Before=shutdown.target
0667db89
LP
16
17[Service]
739848d4 18Environment=HOME=/root
1fd116f7 19WorkingDirectory=/root
be12dd0c 20ExecStartPre=-/bin/plymouth quit
273f54cd 21ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" or ^D to activate default mode.'
de47ca9b
LP
22m4_ifdef(`TARGET_FEDORA',
23`EnvironmentFile=/etc/sysconfig/init
9423fd77 24ExecStart=-/bin/bash -c "exec ${SINGLE}"',
1de4d79b
AB
25m4_ifdef(`TARGET_MANDRIVA',
26`EnvironmentFile=/etc/sysconfig/init
27ExecStart=-/bin/bash -c "exec ${SINGLE}"',
54e4fdef
CF
28`ExecStart=-/sbin/sulogin'
29m4_ifdef(`TARGET_MEEGO',
30`EnvironmentFile=/etc/sysconfig/init
31ExecStart=-/bin/bash -c "exec ${SINGLE}"',)))
7f62e377 32ExecStopPost=-/bin/systemctl --fail --no-block default
0667db89 33StandardInput=tty-force
cbe82694
MS
34StandardOutput=inherit
35StandardError=inherit
cd25cce9 36KillMode=process
0667db89 37
30609d9c 38# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
0667db89 39# terminates cleanly.
30609d9c 40KillSignal=SIGHUP