chiark / gitweb /
service: rename ValidNoProcess= to RemainAfterExit=
[elogind.git] / units / arch / poweroff.service
index 3ca8f30e94c8b35c5c96788e13efa22818b8c4ac..df2812fd9b6119f5a5579eb7c2b63fdb2457425c 100644 (file)
@@ -7,12 +7,13 @@
 
 [Unit]
 Description=Power-Off
-Requires=shutdown.target
-After=shutdown.target
-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
+After=shutdown.target umount.target
 
 [Service]
-Type=finish
-ValidNoProcess=yes
+Type=oneshot
+RemainAfterExit=yes
 Environment=RUNLEVEL=0
 ExecStart=/etc/rc.shutdown
+StandardOutput=tty