summaryrefslogtreecommitdiff
path: root/server/util/server.c
AgeCommit message (Collapse)AuthorFilesLines
2009-09-25Send debug messages to logfileJakub Hrozek1-1/+25
Introduces a new option --debug-to-files which makes SSSD output its debug information to a file instead of stderr, which is still the default. Also introduces a new confdb option debug_to_files which does the same, but can be specified per-service in the config file. The logfiles are stored in /var/log/sssd by default. Changes the initscript to log to files by default.
2009-09-25Upgrade confdb to version 2Stephen Gallagher1-2/+4
This converts a great many configuration options to the new standard format.
2009-09-23Revert "Use syslog for logging error conditions in SSSD"Stephen Gallagher1-17/+17
This reverts commit 8c50bd085c0efe5fde354deee2c8118887aae29d. Amended: commit 1016af2b1b97ad4290ccce8fa462cc7e3c191b2e also made use of the SYSLOG_ERROR() macro, so those portions of that code also needed to be reverted.
2009-09-21Use syslog for logging error conditions in SSSDJakub Hrozek1-17/+17
This is just a band-aid until ELAPI is fully functional and ready to use.
2009-09-10Remove unused event context argument from confdb_initStephen Gallagher1-2/+2
Because the confdb always operates synchronously, it maintains its own private event context internally. The event context argument passed to it is never used, so we'll remove it to avoid confusion.
2009-08-11Make child processes exit when parent diesJakub Hrozek1-0/+44
The child processes call prctl() and when their parent process is killed, they are sent SIGTERM using prctl. This is currently Linux-specific, for non-Linuxes, a similar effect is achieved by catching a set of common termination signals and sending SIGTERM to the process group.
2009-07-20Add option to add timestamps to debug outputSimo Sorce1-0/+12
use '--debug-timestamps' at the command line or set 'debug-timestamps = TRUE' in the configuration file.
2009-06-17Create gettext framework for SSSD daemonStephen Gallagher1-0/+6
2009-05-08Chdir to / when daemonizingJakub Hrozek1-0/+11
2009-05-08Use tevent for shutdown signals, remove old pidfile, make sssd single-instance.Jakub Hrozek1-1/+9
Use tevent signal handling facilities for handlong SIGTERM and SIGINT in the monitor. Remove pidfile on SIGTERM and SIGINT. Make sssd single-instance by checking if we suceeded in signaling the process in the pidfile.
2009-03-20Enhance server_setupSimo Sorce1-0/+10
Now it can load from scratch default configuration that is valid for all daemons. First thing, make it possible for each daemon/provider to set its own debug level in its configuration entry.
2009-03-13Better error reporting for pidfile()Simo Sorce1-7/+11
This should help understanding what's going on if the server fails to create a pid file.
2009-03-11Fix calling setsid and resolve the sssd signal bugSimo Sorce1-11/+1
For some reason we were not testing for HAVE_SETSID in configure therefore the setsid() function was never called. This failed to set the process group after the first fork. Remove ifdef because we depend on setsid() anyway, so if it is not available on some platform it is better to fail rather then silently succeed but not have the right process group set up.
2009-02-26Rebase the code to use talloc, tdb, tevent, ldb as externalSimo Sorce1-12/+9
dependencies based on the latest samba code. Convert all references to the old events library to use the renamed tevent library.
2009-02-13Always pass teh database path explicitly, so that test cases can useSimo Sorce1-1/+9
throw away databases Check version and init main db if empty
2009-02-12Fix copy&paste errorSimo Sorce1-1/+1
2009-01-08The code now successfully sends a getpwnam request to a remote LDAP server,Simo Sorce1-0/+2
and caches the result in LDAP. Still chasing a bug that does not let NSS known that the BE was successful. This makes NSS timeout the client and not return any results yet.
2008-12-22libevents renamed upstream to libteventSimo Sorce1-2/+2
events.h -> tevent.h
2008-12-10Convert leading tabs to 4 spacesSimo Sorce1-36/+36
2008-12-08Change data provider into a hub, where backends (ldap, nis, ipa providers)Simo Sorce1-1/+4
and frontends (pam, nss, ... modules) can connect to.
2008-11-25Make a binary out of each major sssd component instead ofSimo Sorce1-112/+28
using the same binary to fork off all services.
2008-11-25Move all server helpers in util/server.cSimo Sorce1-0/+400