summaryrefslogtreecommitdiffstats
path: root/server/util/server.c
Commit message (Collapse)AuthorAgeFilesLines
* Chdir to / when daemonizingJakub Hrozek2009-05-081-0/+11
|
* Use tevent for shutdown signals, remove old pidfile, make sssd single-instance.Jakub Hrozek2009-05-081-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.
* Enhance server_setupSimo Sorce2009-03-201-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.
* Better error reporting for pidfile()Simo Sorce2009-03-131-7/+11
| | | | | This should help understanding what's going on if the server fails to create a pid file.
* Fix calling setsid and resolve the sssd signal bugSimo Sorce2009-03-111-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.
* Rebase the code to use talloc, tdb, tevent, ldb as externalSimo Sorce2009-02-261-12/+9
| | | | | | dependencies based on the latest samba code. Convert all references to the old events library to use the renamed tevent library.
* Always pass teh database path explicitly, so that test cases can useSimo Sorce2009-02-131-1/+9
| | | | | throw away databases Check version and init main db if empty
* Fix copy&paste errorSimo Sorce2009-02-121-1/+1
|
* The code now successfully sends a getpwnam request to a remote LDAP server,Simo Sorce2009-01-081-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.
* libevents renamed upstream to libteventSimo Sorce2008-12-221-2/+2
| | | | events.h -> tevent.h
* Convert leading tabs to 4 spacesSimo Sorce2008-12-101-36/+36
|
* Change data provider into a hub, where backends (ldap, nis, ipa providers)Simo Sorce2008-12-081-1/+4
| | | | and frontends (pam, nss, ... modules) can connect to.
* Make a binary out of each major sssd component instead ofSimo Sorce2008-11-251-112/+28
| | | | using the same binary to fork off all services.
* Move all server helpers in util/server.cSimo Sorce2008-11-251-0/+400