]> source.dussan.org Git - rspamd.git/commit
Use Systemd for Linux family and SysV for other systems.
authorAndrej Zverev <andrej.zverev@gmail.com>
Wed, 11 Mar 2015 22:25:26 +0000 (01:25 +0300)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 17 Mar 2015 19:31:35 +0000 (21:31 +0200)
commitd8f17b061835e7d59f464ad8a7c4036495232b96
tree1c42eb33436101b145a486ad8ec51516f20c070b
parent68a8b5e094d7aea2539a652c5e9046d4eacad4a9
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
CMakeLists.txt
conf/rspamd.conf [deleted file]
conf/rspamd.conf.in [new file with mode: 0644]