chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
units: Remove the distro specific references to killall.service.
[elogind.git]
/
units
/
fedora
/
single.service
diff --git
a/units/fedora/single.service
b/units/fedora/single.service
index 75b8ecc0b0e6c5ad939015d725abe4832277a89f..550df1ef6099dd88e2a1b0afce5d0a66b309ec41 100644
(file)
--- a/
units/fedora/single.service
+++ b/
units/fedora/single.service
@@
-15,12
+15,14
@@
After=sysinit.target
Before=multi-user.target
[Service]
Before=multi-user.target
[Service]
+Environment=HOME=/root
+EnvironmentFile=/etc/sysconfig/init
+WorkingDirectory=/root
ExecStartPre=-/bin/plymouth --hide-splash
ExecStartPre=-/bin/plymouth --hide-splash
-ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" to activate default mode.'
-ExecStart=/bin/sh
+ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" or ^D to activate default mode.'
+ExecStart=-/bin/bash -c "exec $SINGLE"
+ExecStopPost=/bin/systemctl default
StandardInput=tty-force
StandardInput=tty-force
-Restart=restart-always
-RestartSec=0
KillMode=process-group
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
KillMode=process-group
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash