Bug 267490 - Change HaltCmd default to /sbin/poweroff
Summary: Change HaltCmd default to /sbin/poweroff
Status: RESOLVED FIXED
Alias: None
Product: kdm
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: kdm bugs tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-02 19:21 UTC by Eckhart Wörner
Modified: 2011-04-09 00:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.6.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eckhart Wörner 2011-03-02 19:21:20 UTC
Version:           unspecified (using KDE 4.4.5) 
OS:                Linux

/sbin/halt is only supposed to halt the computer, in contrast to /sbin/poweroff.
With sysvinit there's no difference between those two programs, however, other init systems like systemd take this more seriously. Therefore /sbin/poweroff should be used as default.
See also https://bugzilla.novell.com/show_bug.cgi?id=655141

Reproducible: Always
Comment 1 Oswald Buddenhagen 2011-03-05 19:39:29 UTC
duplicate of rejected bug 74482 and bug 71182.
i won't reject it this time, as now not only bsd is affected by the problem. i think an #ifdef linux in genkdmconf will do now.
Comment 2 Oswald Buddenhagen 2011-03-05 19:43:03 UTC
Git commit a58c0a17217b14e2e47415cfdfb1e8bb0b61a4d3 by Oswald Buddenhagen.
Committed on 05/03/2011 at 19:39.
Pushed by ossi into branch 'KDE/4.6'.

default to poweroff for HaltCmd on linux

now that linux can have more bsd-like shutdown implementations (both in
form of gentoo and of systemd), it makes sense to treat it the same.

BUG: 267490
FIXED-IN: 4.6.2

M  +1    -1    kdm/config.def     

http://commits.kde.org/kde-workspace/a58c0a17217b14e2e47415cfdfb1e8bb0b61a4d3
Comment 3 Lamarque V. Souza 2011-04-08 23:46:24 UTC
Oswald Buddenhagen, you should commit this fix to master branch or it will resurface in KDE SC 4.7.0.
Comment 4 Oswald Buddenhagen 2011-04-09 00:03:20 UTC
not until the idea of merging stable branches into master is definitively from the table.