[Bug 785701] New: HALT_POWERDOWN_INSERT is ignored under systemd
https://bugzilla.novell.com/show_bug.cgi?id=785701 https://bugzilla.novell.com/show_bug.cgi?id=785701#c0 Summary: HALT_POWERDOWN_INSERT is ignored under systemd Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: Other OS/Version: openSUSE 12.2 Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: arvidjaar@gmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1 HALT_POWERDOWN_INSERT is evaluated by /etc/init.d/halt which no more runs under systemd. This variable was used by UPS packages to perform late "UPS off" command. This functionality is no more directly available in 12.2. Either this variable need to be removed to avoid confusion or compatibility systemd unit similar to below is needed. [Unit] Description=Execute HALT_POWERDOWN_INSERT DefaultDependencies=no After=shutdown.target umount.target Before=final.target [Service] Type=oneshot Environment=HALT_POWERDOWN_INSERT= EnvironmentFile=/etc/sysconfig/shutdown ExecStart=-/bin/sh -c '[ -n "$HALT_POWERDOWN_INSERT" ] && $HALT_POWERDOWN_INSERT' TimeoutSec=0 StandardOutput=tty RemainAfterExit=yes [Install] WantedBy=shutdown.target Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=785701
https://bugzilla.novell.com/show_bug.cgi?id=785701#c
Jiaying ren
https://bugzilla.novell.com/show_bug.cgi?id=785701
https://bugzilla.novell.com/show_bug.cgi?id=785701#c1
--- Comment #1 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=785701
https://bugzilla.novell.com/show_bug.cgi?id=785701#c2
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=785701
https://bugzilla.novell.com/show_bug.cgi?id=785701#c3
--- Comment #3 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=785701
https://bugzilla.novell.com/show_bug.cgi?id=785701#c4
--- Comment #4 from Frederic Crozat
If systemd has a clean way to perform action just before calling the final poweroff, then HALT_POWERDOWN_INSERT is no more needed, and packages can use standard systemd integration.
It has: final.target is run just before shutting down, so it can be used like HALT_POWERDOWN_INSERT.
If it is true, we can update HALT_POWERDOWN_INSERT description and say, that it is systemv specific.
What it would mean? Do not introduce the service proposed by you in the core systemd package, but add needed service to apcupsd and nut. I think that there were no other packages using this feature.
I could integrate Andrey fix for 12.2 (since it is already released) and we follow your suggestion for Factory. WDYT ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=785701
https://bugzilla.novell.com/show_bug.cgi?id=785701#c5
--- Comment #5 from Andrey Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=785701
https://bugzilla.novell.com/show_bug.cgi?id=785701#c6
--- Comment #6 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=785701
https://bugzilla.novell.com/show_bug.cgi?id=785701#c7
Ian Powell
https://bugzilla.novell.com/show_bug.cgi?id=785701
https://bugzilla.novell.com/show_bug.cgi?id=785701#c8
--- Comment #8 from Frederic Crozat
I'm not sure if this bug is related to my issue. I've got the problem of the PC never powering down even though I get the "System Halted" message ok (i escaped the shutdown splash to watch the shutdown). I expect the PC then to power off.
This is unrelated, you need to use "halt -p" to shutdown your computer (as explained in the manual). With sysvinit, we had a patch which was injecting "-p" on x86/x86_64 hardware without you noticing. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=785701
https://bugzilla.novell.com/show_bug.cgi?id=785701#c9
--- Comment #9 from Ian Powell
(In reply to comment #7)
I'm not sure if this bug is related to my issue. I've got the problem of the PC never powering down even though I get the "System Halted" message ok (i escaped the shutdown splash to watch the shutdown). I expect the PC then to power off.
This is unrelated, you need to use "halt -p" to shutdown your computer (as explained in the manual). With sysvinit, we had a patch which was injecting "-p" on x86/x86_64 hardware without you noticing.
Unfortunately that made no difference at all. There is "Bug 794889 - Shutdown does not power off machine" created by someone else which is more relevant but no-one has looked at it. I had also posted to that one. I installed Fedora on an old laptop to check another issue and noticed it used "poweroff". So i tried it as well but it did the same thing, shut everything down okay but did not power off. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=785701
https://bugzilla.novell.com/show_bug.cgi?id=785701#c10
--- Comment #10 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=785701
https://bugzilla.novell.com/show_bug.cgi?id=785701#c11
--- Comment #11 from Ian Powell
if halt -p doesn't work, it is a kernel issue.
Unfortunatly it doesn't work either, nothing seems to power off the machine. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=785701
https://bugzilla.novell.com/show_bug.cgi?id=785701#c12
--- Comment #12 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=785701
https://bugzilla.novell.com/show_bug.cgi?id=785701#c13
--- Comment #13 from Ian Powell
so, it is not about this bug report.
so it would appear. just hope someone gets time to look at logged fault to check to see if it affects 12.3 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=785701
https://bugzilla.novell.com/show_bug.cgi?id=785701#c14
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=785701
https://bugzilla.novell.com/show_bug.cgi?id=785701#c15
Borislav Petkov
https://bugzilla.novell.com/show_bug.cgi?id=785701
https://bugzilla.novell.com/show_bug.cgi?id=785701#c16
--- Comment #16 from Frederic Crozat
participants (1)
-
bugzilla_noreply@novell.com