chiark / gitweb /
service: rename ValidNoProcess= to RemainAfterExit=
[elogind.git] / units / gentoo / poweroff.service
index 2cc645ec5302be14fc9ab00bfbb463fd3166b360..2483f9448ce2dfa3a9979887f702a7b132fc39b3 100644 (file)
@@ -7,12 +7,13 @@
 
 [Unit]
 Description=Power-Off
-Requires=shutdown.target killall.service
-After=shutdown.target killall.service
-Conflicts=dev-hugepages.automount dev-mqueue.automount proc-sys-fs-binfmt_misc.automount sys-kernel-debug.automount sys-kernel-security.automount
+DefaultDependencies=no
+Requires=shutdown.target umount.target killall.service
+After=shutdown.target umount.target killall.service
 
 [Service]
-Type=finish
-ValidNoProcess=yes
+Type=oneshot
+RemainAfterExit=yes
 Environment=RC_DOWN_HARDDISK=yes
 ExecStart=/etc/init.d/shutdown.sh
+StandardOutput=tty