2010-05-16 18:49:41 +00: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-16 20:45:11 +00:00
|
|
|
# See systemd.special(7) for details
|
|
|
|
|
2010-04-15 21:20:17 +00:00
|
|
|
[Unit]
|
2010-04-13 03:18:12 +00:00
|
|
|
Description=Emergency Shell
|
2010-07-03 17:53:37 +00:00
|
|
|
DefaultDependencies=no
|
2010-07-11 02:22:00 +00:00
|
|
|
Requires=shutdown.target umount.target
|
2010-07-10 02:42:22 +00:00
|
|
|
After=shutdown.target umount.target
|
2010-04-13 03:18:12 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStart=/bin/sh
|
|
|
|
StandardInput=tty
|
|
|
|
Restart=restart-always
|
|
|
|
RestartSec=0
|
2010-06-02 17:15:42 +00:00
|
|
|
KillMode=process-group
|
2010-07-08 02:21:53 +00:00
|
|
|
|
|
|
|
# Bash ignores SIGTERM, so we send SIGHUP first, to ensure that bash
|
|
|
|
# terminates cleanly.
|
|
|
|
ExecStop=/bin/kill -HUP $(MAINPID)
|