summaryrefslogtreecommitdiffstats
path: root/server/monitor/monitor.h
Commit message (Collapse)AuthorAgeFilesLines
* Read the configuration parsing before daemonizationStephen Gallagher2009-09-101-3/+3
| | | | | | | We will now parse the config file and validate the confdb contents before processing the rest of the monitor startup. This will allow us to return an appropriate error code to the shell if the configuration is invalid.
* Monitor resolv.conf for changesStephen Gallagher2009-07-201-0/+4
| | | | | | | | | | | | | | | | | | | This patch updates the monitor_config_file() functions so that they can monitor any number of files and invoke a specified callback whenever they are modified. When inotify is available, we will add an additional watch descriptor to the inotify file descriptor. When inotify is not available, the polling function will simply loop to check each file in the monitor list. When changes are discovered in resolv.conf, the monitor will send a "resInit" signal to all of its known children. They are only required to handle this function if they need updated DNS information. Services that do not implement resInit should return DBUS_ERROR_UNKNOWN_METHOD (rather than timing out) with no ill effects.
* Allow configuration of the SSSD through /etc/sssd/sssd.confStephen Gallagher2009-04-131-2/+5
| | | | | | | | | | | | | | | | | | | The SSSD now links with the ini_config and collection libraries in the common directory. The monitor will track changes to the /etc/sssd/sssd.conf file using inotify on platforms that support it, or polled every 5 seconds on platforms that do not. At startup or modification of the conf file, the monitor will purge the existing confdb and reread it completely from the conf file, to ensure that there are no lingering entries. It does this in a transaction, so there should be no race condition with the client services. A new option has been added to the startup options for the SSSD. It is now possible to specify an alternate config file with the -c <file> at the command line.
* Rebase the code to use talloc, tdb, tevent, ldb as externalSimo Sorce2009-02-261-1/+1
| | | | | | dependencies based on the latest samba code. Convert all references to the old events library to use the renamed tevent library.
* Refactoring the monitor code and SBUS utility functions.Stephen Gallagher2009-01-271-0/+29