chiark / gitweb /
service: rename Type=finish to Type=oneshot and allow multiple ExecStart= lines for...
[elogind.git] / units / suse / poweroff.service
index a68c10cfd3794b14954a4110f5766b1904829e49..13b13b04279f88602acc893ff7cdeab6609da672 100644 (file)
@@ -7,11 +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
+Type=oneshot
 ValidNoProcess=yes
-ExecStart=/etc/init.d/halt start
+Environment=COLD_BOOT=1
+ExecStart=/etc/init.d/halt
+StandardOutput=tty