Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165838 - KDM uses halt/reboot to shutdown and reboot the system while it should use shudown -p and shutdown -r on g/fbsd
Summary: KDM uses halt/reboot to shutdown and reboot the system while it should use sh...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: x86 FreeBSD
: High enhancement (vote)
Assignee: Gentoo/BSD Team
URL: http://bugs.kde.org/show_bug.cgi?id=7...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-07 21:57 UTC by Emanuele A. Bagnaschi (Zephyrus)
Modified: 2007-08-20 12:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emanuele A. Bagnaschi (Zephyrus) 2007-02-07 21:57:47 UTC
The default kdmrc configuration uses reboot and halt to manage the system state, however using `shutdown -r` (in place of reboot) and `shutdown -h` (in place of halt) is a better solution because: 
1] This results in warnings for the logged users
2] In the case of shutdown -h, it tries to power down the system if APM/ACPI support is present, as halt do on GNU/Linux.

See also this mail written by a FreeBSD Core dev to kdenonlinux mailing list:
http://lists.kde.org/?l=kde-nonlinux&m=100980863816991&w=2

A possibile solution is to use sed in the src_install sections of the relevant ebuilds (kdebase and kdm) to edit the default kdmrc, as it happens now for xsessions path.


Reproducible: Always

Steps to Reproduce:
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-08-20 11:07:04 UTC
I've created a patch that fixes this, and submitted upstream.
http://bugs.kde.org/show_bug.cgi?id=74482

@kde team - this OK to commit and bump?
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-08-20 12:32:56 UTC
Fixed