From kde-nonlinux Mon Dec 31 14:21:27 2001 From: Robert Watson Date: Mon, 31 Dec 2001 14:21:27 +0000 To: kde-nonlinux Subject: [Kde-nonlinux] kdm shutting down using shutdown instead of reboot on FreeBSD X-MARC-Message: https://marc.info/?l=kde-nonlinux&m=100980863816991 I've noticed that the default configuration for kdm is to use 'reboot' and 'halt' to reboot and shut down systems. On FreeBSD, using the 'shutdown' command with appropriate arguments can lead to a more user-friendly experience. In particular, I recommend: Reboot: shutdown -r NOW # or potentially +1m or another time Shutdown: shutdown -p NOW # or potentially +1m or another time This results in notices to remote users before the connections are severed. -p will also ask the system to do a power-off using apm (or acpi on 5.0-CURRENT). An interesting question to ask might be how we could get shutdown executed remotely to play more nicely with KDE users without terminals open (or with pty's but no utmp entry). I've occasionally wondered if it wouldn't be useful to provide some sort of generic event messaging service for windowed users that base system programs could make use of. I.e., a systemmessaged listening on a unix domain socket for incoming messages, then feeding it to consumers in a similar manner -- sort of like syslogd, only consumable by unprivileged processes and in a more structured way. In this manner, shutdown could notify the console user that the system would reboot in (n) minutes and why, etc. I don't know if there's existing thought on this matter or not.. Thanks, Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services _______________________________________________ kde-nonlinux mailing list kde-nonlinux@mail.kde.org http://mail.kde.org/mailman/listinfo/kde-nonlinux