diff options
author | Simo Sorce <idra@samba.org> | 2008-10-21 13:57:35 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-10-21 13:57:35 -0400 |
commit | c38fcbf3df0131caebec0ce0414fc409b63e9d93 (patch) | |
tree | a6efbfb88ef5b4402a5d67581e53f0eec2881a72 /server/service.h | |
parent | 85f827f25a879a4499180d61742ba6bc22b04ccc (diff) | |
download | sssd-c38fcbf3df0131caebec0ce0414fc409b63e9d93.tar.gz sssd-c38fcbf3df0131caebec0ce0414fc409b63e9d93.tar.bz2 sssd-c38fcbf3df0131caebec0ce0414fc409b63e9d93.zip |
Make return the pid when new process are started.
Monitor each service and restart it conditionally if it fails.
These monitoring is extremely simple at this moment and just uses
waitpid() to check if the client is alive, there is no active
probing, that will require dbus.
Make nsssrv.c read the sss pipe config option for the config db.
Diffstat (limited to 'server/service.h')
-rw-r--r-- | server/service.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/service.h b/server/service.h index 815493ba..6f1a1388 100644 --- a/server/service.h +++ b/server/service.h @@ -31,12 +31,16 @@ int register_server_service(const char *name, void (*task_init)(struct task_server *)); int server_service_startup(struct event_context *event_ctx, const char **server_services); +int server_service_init(const char *name, + struct event_context *ev, + pid_t *rpid); /* The following definitions come from service_task.c */ int task_server_startup(struct event_context *event_ctx, const char *service_name, - void (*task_init)(struct task_server *)); + void (*task_init)(struct task_server *), + pid_t *rpid); void task_server_set_title(struct task_server *task, const char *title); void task_server_terminate(struct task_server *task, const char *reason); |