#include "service.h"
#include "service-listen.h"
#include "service-monitor.h"
+#include "service-process.h"
#include "service-log.h"
#include <stdio.h>
/* see if hostname changed */
hostpid_init();
+ if (services->config->process_avail == 0) {
+ /* we can't reload config if there's no config process. */
+ if (service_process_create(services->config,
+ NULL, NULL) == NULL) {
+ i_error("Can't reload configuration because "
+ "we couldn't create a config process");
+ return;
+ }
+ }
+
memset(&input, 0, sizeof(input));
input.roots = set_roots;
input.module = MASTER_SERVICE_NAME;