Bug 165838 - KDM uses halt/reboot to shutdown and reboot the system while it should use shudown -p and shutdown -r on g/fbsd
Bug#: 165838 Product:  Gentoo/Alt Version: unspecified Platform: x86
OS/Version: FreeBSD Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: bsd@gentoo.org Reported By: zephyrus.271@gmail.com
Component: FreeBSD
URL:  http://bugs.kde.org/show_bug.cgi?id=74482
Summary: KDM uses halt/reboot to shutdown and reboot the system while it should use shudown -p and shutdown -r on g/fbsd
Keywords:  
Status Whiteboard: 
Opened: 2007-02-07 21:57 0000
Description:   Opened: 2007-02-07 21:57 0000
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 From Roy Marples (RETIRED) 2007-08-20 11:07:04 0000 -------
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 From Roy Marples (RETIRED) 2007-08-20 12:32:56 0000 -------
Fixed