summaryrefslogtreecommitdiff
path: root/units/suse
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-07-09 11:53:39 +0200
committerKay Sievers <kay.sievers@vrfy.org>2010-07-09 11:53:39 +0200
commitf8e1755297387e2969a902be22ee201cc506efa2 (patch)
tree4acc3a6b799ca47b7eff091fa1fe96d9c552d3ec /units/suse
parenta45f61d76cfca61ef1813a0b5d04a53afe402993 (diff)
units: SUSE - set COLD_BOOT to skip own boot.d/ handling on shutdown
Diffstat (limited to 'units/suse')
-rw-r--r--units/suse/halt.service4
-rw-r--r--units/suse/poweroff.service3
-rw-r--r--units/suse/reboot.service3
3 files changed, 6 insertions, 4 deletions
diff --git a/units/suse/halt.service b/units/suse/halt.service
index 54586c420..5f42ac691 100644
--- a/units/suse/halt.service
+++ b/units/suse/halt.service
@@ -15,6 +15,6 @@ Conflicts=dev-hugepages.automount dev-mqueue.automount proc-sys-fs-binfmt_misc.a
[Service]
Type=finish
ValidNoProcess=yes
-Environment=INIT_HALT=HALT RUNLEVEL=0
-ExecStart=/etc/init.d/halt start
+Environment=INIT_HALT=HALT RUNLEVEL=0 COLD_BOOT=1
+ExecStart=/etc/init.d/halt
StandardInput=tty
diff --git a/units/suse/poweroff.service b/units/suse/poweroff.service
index cb90874c3..93a9da502 100644
--- a/units/suse/poweroff.service
+++ b/units/suse/poweroff.service
@@ -15,5 +15,6 @@ Conflicts=dev-hugepages.automount dev-mqueue.automount proc-sys-fs-binfmt_misc.a
[Service]
Type=finish
ValidNoProcess=yes
-ExecStart=/etc/init.d/halt start
+Environment=COLD_BOOT=1
+ExecStart=/etc/init.d/halt
StandardInput=tty
diff --git a/units/suse/reboot.service b/units/suse/reboot.service
index 1ccacebac..c3526b303 100644
--- a/units/suse/reboot.service
+++ b/units/suse/reboot.service
@@ -15,5 +15,6 @@ Conflicts=dev-hugepages.automount dev-mqueue.automount proc-sys-fs-binfmt_misc.a
[Service]
Type=finish
ValidNoProcess=yes
-ExecStart=/etc/init.d/reboot start
+Environment=COLD_BOOT=1
+ExecStart=/etc/init.d/reboot
StandardInput=tty