2010-05-17 01:49:41 +07:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
2010-05-17 03:45:11 +07:00
|
|
|
# See systemd.special(7) for details
|
|
|
|
|
2010-04-16 04:20:17 +07:00
|
|
|
[Unit]
|
2010-04-13 10:18:12 +07:00
|
|
|
Description=Emergency Shell
|
2010-07-04 00:53:37 +07:00
|
|
|
DefaultDependencies=no
|
2010-04-13 10:18:12 +07:00
|
|
|
|
|
|
|
[Service]
|
2010-07-13 04:49:20 +07:00
|
|
|
ExecStartPre=-/bin/plymouth --hide-splash
|
|
|
|
ExecStartPre=-/bin/echo 'Welcome to emergency mode. Use "systemctl default" to activate default mode.'
|
2010-04-13 10:18:12 +07:00
|
|
|
ExecStart=/bin/sh
|
2010-07-13 04:49:20 +07:00
|
|
|
StandardInput=tty-force
|
2010-04-13 10:18:12 +07:00
|
|
|
Restart=restart-always
|
|
|
|
RestartSec=0
|
2010-06-03 00:15:42 +07:00
|
|
|
KillMode=process-group
|
2010-07-08 09:21:53 +07:00
|
|
|
|
|
|
|
# Bash ignores SIGTERM, so we send SIGHUP first, to ensure that bash
|
|
|
|
# terminates cleanly.
|
2010-07-21 07:57:35 +07:00
|
|
|
ExecStop=-/bin/kill -HUP ${MAINPID}
|