diff options
author | Andrej Zverev <andrej.zverev@gmail.com> | 2015-03-12 01:25:26 +0300 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2015-03-17 21:31:35 +0200 |
commit | d8f17b061835e7d59f464ad8a7c4036495232b96 (patch) | |
tree | 1c42eb33436101b145a486ad8ec51516f20c070b /conf/rspamd.conf | |
parent | 68a8b5e094d7aea2539a652c5e9046d4eacad4a9 (diff) | |
download | rspamd-d8f17b061835e7d59f464ad8a7c4036495232b96.tar.gz rspamd-d8f17b061835e7d59f464ad8a7c4036495232b96.zip |
Use Systemd for Linux family and SysV for other systems.
We are creating conf/rspamd.conf.in as template and
declaring two new variables for CMake:
DEFAULTS (for SysV):
RSPAMD_WORKER_NORMAL = "*:11333"
RSPAMD_WORKER_CONTROLLER = "*:11334"
For Linux (for Systemd):
RSPAMD_WORKER_NORMAL = "systemd:0"
RSPAMD_WORKER_CONTROLLER = "systemd:1"
During build we replace template with correct values.
Conflicts:
CMakeLists.txt
Diffstat (limited to 'conf/rspamd.conf')
-rw-r--r-- | conf/rspamd.conf | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/conf/rspamd.conf b/conf/rspamd.conf deleted file mode 100644 index 06dbe8599..000000000 --- a/conf/rspamd.conf +++ /dev/null @@ -1,20 +0,0 @@ -.include "$CONFDIR/common.conf" - -options { - .include "$CONFDIR/options.inc" -} - -logging { - type = "console"; - .include "$CONFDIR/logging.inc" -} - -worker { - bind_socket = "systemd:0"; - .include "$CONFDIR/worker-normal.inc" -} - -worker { - bind_socket = "systemd:1"; - .include "$CONFDIR/worker-controller.inc" -} |