chiark / gitweb /
service: rename ValidNoProcess= to RemainAfterExit=
[elogind.git] / units / suse / reboot.service
index 2bc452e180a4db020237dfc486d13d4b79de5045..001d1364a0f205c84c9ed30e193b9b6e6bd341f7 100644 (file)
@@ -7,11 +7,13 @@
 
 [Unit]
 Description=Reboot
-Requires=shutdown.target
-After=shutdown.target
-Conflicts=dev-hugepages.automount dev-mqueue.automount proc-sys-fs-binfmt_misc.automount sys-kernel-debug.automount
+DefaultDependencies=no
+Requires=shutdown.target umount.target
+After=shutdown.target umount.target
 
 [Service]
-Type=finish
-ValidNoProcess=yes
-ExecStart=/etc/init.d/reboot start
+Type=oneshot
+RemainAfterExit=yes
+Environment=COLD_BOOT=1
+ExecStart=/etc/init.d/reboot
+StandardOutput=tty