chiark / gitweb /
service: rename settings for Restart= from 'restart-always' to 'always' and similar
[elogind.git] / units / fedora / single.service
index 27f3578c641d4b257caea839a5aa26cc9529d21b..a519ae3d6304d9a87c6ea9f0f270188988f064b1 100644 (file)
 [Unit]
 Description=Rescue Shell
 DefaultDependencies=no
-After=shutdown.target sysinit.target
+Conflicts=multi-user.target
+After=sysinit.target
+Before=multi-user.target
 
 [Service]
+Environment=HOME=/root
+WorkingDirectory=/root
 ExecStartPre=-/bin/plymouth --hide-splash
 ExecStartPre=-/bin/echo 'Welcome to rescue mode. Use "systemctl default" to activate default mode.'
-ExecStart=/bin/sh
+ExecStart=-/sbin/sulogin
 StandardInput=tty-force
-Restart=restart-always
+Restart=always
 RestartSec=0
 KillMode=process-group
 
-# Bash ignores SIGTERM, so we send SIGHUP first, to ensure that bash
+# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
 # terminates cleanly.
-ExecStop=-/bin/kill -HUP $(MAINPID)
+KillSignal=SIGHUP