summaryrefslogtreecommitdiff
path: root/server/monitor/monitor.h
AgeCommit message (Collapse)AuthorFilesLines
2009-09-10Read the configuration parsing before daemonizationStephen Gallagher1-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.
2009-07-20Monitor resolv.conf for changesStephen Gallagher1-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.
2009-04-13Allow configuration of the SSSD through /etc/sssd/sssd.confStephen Gallagher1-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.
2009-02-26Rebase the code to use talloc, tdb, tevent, ldb as externalSimo Sorce1-1/+1
dependencies based on the latest samba code. Convert all references to the old events library to use the renamed tevent library.
2009-01-27Refactoring the monitor code and SBUS utility functions.Stephen Gallagher1-0/+29