Jedy Wang schrieb:

> For example, ConsoleKit DBus service daemon currently provides 2 DBus
> methods, Stop and Restart, to shutdown and reboot the system. We can add
> 2 new DBus methods, FastRestart and ColdRestart, to support fast reboot
> and reboot to prom.
> 

I don't think a multitude of platform-specific methods is the best 
approach to add platform-dependent specializations to an essentially 
platform-independent interface. If you later want to add support for 
boot-to-specified-BE, you'd need more methods.

A better approach could be a pair of getBootOptions/setBootOptions 
methods or an added bootOptions parameter for the restart and 
shutdown(?) methods, which allow passing a set of named parameters (as a 
map/dictionary). Through getBootOptions (or a separate method) it should 
be possible to query supported options.

I'd assume such a generic approach is more palatable for upstream.

> I do not understand what you mean by "These interfaces look a bit out of
> place on ConsoleKit"?
> 

ConsoleKit manages Seats and Sessions and their association to devices 
and X servers. Interfaces for system power control are really something 
different and would really be better offered by a separate power 
management service.

- J?rg

-- 
Joerg Barfurth           phone: +49 40 23646662 / x66662
Software Engineer        mailto:joerg.barfurth at sun.com
Desktop Technology       http://reserv.ireland/twiki/bin/view/Argus/
Thin Client Software     http://www.sun.com/software/sunray/
Sun Microsystems GmbH    http://www.sun.com/software/javadesktopsystem/


Reply via email to