units: SUSE - set COLD_BOOT to skip own boot.d/ handling on shutdown

This commit is contained in:
Kay Sievers 2010-07-09 11:53:39 +02:00
parent a45f61d76c
commit f8e1755297
3 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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