summaryrefslogtreecommitdiff
path: root/StbObject.pm
AgeCommit message (Collapse)AuthorFilesLines
2008-01-02Do not set the counter in reset_counter() if --disable-shutdown is specified.Carlos Garnacho1-5/+5
2007-12-12Add getFiles base in StbObject. Implement getFiles for UserConfig and ↵Carlos Garnacho1-0/+2
UsersConfig. * StbObject.pm: Add DBus method there. * Users/Users.pm: turns out that get_files was already there, move it after the other main methods. * UserConfig.pm, UsersConfig.pm: implement getFiles().
2007-09-252007-09-26 Carlos Garnacho <carlosg@gnome.org>carlosg1-3/+22
Add a diagnostics tool, returns the whole system configuration without using DBus, it's way easier to debug problems when dealing with the distro. * Utils/Backend.pm: Remove DBus usage, move DBus related functions to: * Utils/DBus.pm: new file. * Utils/Makefile: added here too. * SystemToolsBackend.pl.in: error out if no module was requested here. * Platform: use Utils::DBus. * StbObject.pm: use Utils::DBus. ensure platform and set counter here. * diagnostics.pl: new tool, uses the s-t-b core, which doesn't depend on DBus anymore.
2006-11-272006-11-27 Carlos Garnacho <carlosg@gnome.org>carlosg1-0/+47
Merge c-dispatcher branch, adds a lightweight dispatcher which raises configuration modules on demand, reducing memory use during inactivity and allowing the development of modules in other languages than Perl. 2006-10-24 Carlos Garnacho <carlosg@gnome.org> * dispatcher/dispatcher.c: exit() on SIGTERM. 2006-10-24 Carlos Garnacho <carlosg@gnome.org> Continued work on the dispatcher, I think it's now feature complete enough to work. * StbObject.pm: base object for s-t-b services, does all initialization and common stuff. * GroupsConfig.pm, HostsConfig.pm, IfacesConfig.pm, NFSConfig.pm, NTPConfig.pm, SMBConfig.pm, ServicesConfig.pm, TimeConfig.pm, UsersConfig.pm: inherit from StbObject, keep message format in a variable to avoid duplicates. * Utils/Platform.pm: move DBus code to Platform.pm. * Platform.pm: added, new DBus object. * Utils/Backend.pm: ensure system and platform. * Init/Services.pm: code improvements for archlinux * dispatcher/dispatcher.c: Add license, make it raise it's own private session bus to spawn configuration modules, cache platform and return it when asked, create a copy of the message to pass around (seems to be necessary by design) * services/*: added, used to raise configuration modules. * configure.in, Makefile.am: added services directory stuff. 2006-10-13 Carlos Garnacho <carlosg@gnome.org> * dispatcher/dispatcher.c (daemonize): added, function to make the dispatcher become a daemon. 2006-10-12 Carlos Garnacho <carlosg@gnome.org> beginnings of a really lightweight dispatcher written in C, this way the modules will only be loaded when necessary, reducing memory usage and allowing to develop modules in other languages than Perl. * dispatcher/dispatcher.c, Makefile.am: added, first draft of the dispatcher, it already forwards messages and sends replies back and tries to raise modules in the session bus * Makefile.am: add the dispatcher directory. * configure.in: require GLib to build the dispatcher, maybe this dep could be dropped at some point in the future, if I don't feel too lazy... * Utils/Backend.pm: remove --no-daemon and --session-bus parameters, should be no longer needed. Add --disable-shutdown for testing purposes, as modules are supposed to shutdown automatically after some inactivity. Add --module parameter to raise a configuration module. * GroupsConfig.pm, HostsConfig.pm, IfacesConfig.pm, NFSConfig.pm, NTPConfig.pm, SMBConfig.pm, ServicesConfig.pm, TimeConfig.pm, UsersConfig.pm: create the DBus object by themselves. * SystemToolsBackends.pl.in: do not create all the DBus objects, just the one we want to raise, this way the script becomes a loader for services instead of a service itself.