chiark / gitweb /
umount: simplify code for deactivating loop devices
[elogind.git] / units / fedora / halt.service
index a298d95767df4477755178d364e1375527f6c08e..c337dce6d9ad4523c2723f5f1ef173dcfc34b554 100644 (file)
@@ -7,12 +7,13 @@
 
 [Unit]
 Description=Halt
-Requires=shutdown.target killall.service
-After=shutdown.target killall.service
+DefaultDependencies=no
+Requires=shutdown.target umount.target killall.service
+After=shutdown.target umount.target killall.service
 
 [Service]
-Type=finish
-ValidNoProcess=yes
-Environment=INIT_HALT=HALT
-Environment=RUNLEVEL=0
+Type=oneshot
+RemainAfterExit=yes
+Environment=INIT_HALT=HALT RUNLEVEL=0
 ExecStart=/etc/init.d/halt start
+StandardOutput=tty