summaryrefslogtreecommitdiffstats
path: root/src/master/service-monitor.h
blob: 7dd1c4db91ff6240bdf08cf953f5262f5bc05803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef SERVICE_MONITOR_H
#define SERVICE_MONITOR_H

/* Start listening and monitoring services. */
void services_monitor_start(struct service_list *service_list);

/* Stop services. */
void services_monitor_stop(struct service_list *service_list, bool wait);

/* Call after SIGCHLD has been detected */
void services_monitor_reap_children(void);

void service_monitor_stop(struct service *service);
void service_monitor_stop_close(struct service *service);
void service_monitor_listen_start(struct service *service);
void service_monitor_listen_stop(struct service *service);

#endif