aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-06-17 20:25:48 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-06-17 20:25:48 +0400
commit26eed5a540674c0fce99883a64c7675d7c5cbb92 (patch)
tree76945e5ad58c561200ef09c739807af2b0e2e986 /src/main.c
parentde84c16025fd54d2f1c67cfe6a462e9c929c6244 (diff)
downloadrspamd-26eed5a540674c0fce99883a64c7675d7c5cbb92.tar.gz
rspamd-26eed5a540674c0fce99883a64c7675d7c5cbb92.zip
* Implement initial version of greylisting triplets storage
* Fix issues with smtp worker
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 2b69afe38..3365b67c4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -361,6 +361,12 @@ fork_worker (struct rspamd_main *rspamd, struct worker_conf *cf)
msg_info ("starting fuzzy storage process %P", getpid ());
start_fuzzy_storage (cur);
break;
+ case TYPE_GREYLIST:
+ setproctitle ("greylist storage");
+ pidfile_close (rspamd->pfh);
+ msg_info ("starting greylist storage process %P", getpid ());
+ start_greylist_storage (cur);
+ break;
case TYPE_WORKER:
default:
setproctitle ("worker process");
@@ -529,7 +535,7 @@ spawn_workers (struct rspamd_main *rspamd)
cf->listen_sock = listen_sock;
}
- if (cf->type == TYPE_FUZZY) {
+ if (cf->type == TYPE_FUZZY || cf->type == TYPE_GREYLIST) {
if (cf->count > 1) {
msg_err ("cannot spawn more than 1 fuzzy storage worker, so spawn one");
}
@@ -555,6 +561,8 @@ get_process_type (enum process_type type)
return "worker";
case TYPE_FUZZY:
return "fuzzy";
+ case TYPE_GREYLIST:
+ return "greylist";
case TYPE_CONTROLLER:
return "controller";
case TYPE_LMTP: