]> source.dussan.org Git - rspamd.git/commit
Use Systemd for Linux family and SysV for other systems. 217/head
authorAndrej Zverev <andrej.zverev@gmail.com>
Wed, 11 Mar 2015 22:25:26 +0000 (01:25 +0300)
committerCharlie Root <root@freebsd11.lan>
Wed, 11 Mar 2015 22:27:57 +0000 (01:27 +0300)
commit6555f46ec99e9187473a95a6e3de2b93010165d6
tree7b06e11ce5a3d6b1ffc300803bf502a59125e0e1
parent60efb4dcd1af9204ee83555921b24e643a74793e
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.
CMakeLists.txt
conf/rspamd.conf [deleted file]
conf/rspamd.conf.in [new file with mode: 0644]