From f75fcf21e17c8f490e34bed45d935bd1e13c9b7f Mon Sep 17 00:00:00 2001 From: Arturo Borrero Gonzalez Date: Mon, 16 Apr 2018 19:28:44 +0200 Subject: systemd: default to use libsystemd if build with support for it We may assume that if an user does build conntrackd with such feature, is with the intention to use it. So, if that's the case, default to use it. This eases some downstream use cases when dealing with default configs to be shipped to final users. This could be a mid-point solution, given some users are asking for a full revert of commit c01d0d9138112ec95ee316385ea2687dd94fa4e3. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- src/read_config_yy.y | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/read_config_yy.y b/src/read_config_yy.y index 32cca3c..6de8c6c 100644 --- a/src/read_config_yy.y +++ b/src/read_config_yy.y @@ -1626,6 +1626,10 @@ init_config(char *filename) CONFIG(stats).syslog_facility = -1; CONFIG(netlink).subsys_id = -1; +#ifdef BUILD_SYSTEMD + CONFIG(systemd) = 1; +#endif /* BUILD_SYSTEMD */ + /* Initialize list of user-space helpers */ INIT_LIST_HEAD(&CONFIG(cthelper).list); -- cgit v1.2.3