summaryrefslogtreecommitdiff
path: root/server/util/server.c
AgeCommit message (Collapse)AuthorFilesLines
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