* [PATCH conntrackd] conntrackd: Disable systemd support by default
@ 2016-02-16 19:09 Pablo Neira Ayuso
2016-02-17 7:50 ` Arturo Borrero Gonzalez
0 siblings, 1 reply; 3+ messages in thread
From: Pablo Neira Ayuso @ 2016-02-16 19:09 UTC (permalink / raw)
To: netfilter-devel; +Cc: arturo.borrero.glez
By default, conntrackd is compiled with no built-in systemd support.
This patch updates the default runtime behaviour to be consistent
with what ./configure provides by default.
Thus, users should explicitly indicate "Systemd On" in their configuration
file to enable this.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
conntrackd.conf.5 | 4 ++--
doc/stats/conntrackd.conf | 4 ++--
doc/sync/alarm/conntrackd.conf | 4 ++--
doc/sync/ftfw/conntrackd.conf | 4 ++--
doc/sync/notrack/conntrackd.conf | 4 ++--
src/read_config_yy.y | 4 ++--
6 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/conntrackd.conf.5 b/conntrackd.conf.5
index 4781825..ed387b9 100644
--- a/conntrackd.conf.5
+++ b/conntrackd.conf.5
@@ -457,9 +457,9 @@ Obviusly, this requires the init systemd of your system to be \fBsystemd(1)\fP.
Note: \fBsystemd(1)\fP watchdog is supported as well.
-Example: Systemd off
+Example: Systemd on
-By default runtime support is activated.
+By default runtime support is disabled.
.TP
.BI "Nice <value>"
diff --git a/doc/stats/conntrackd.conf b/doc/stats/conntrackd.conf
index b1cca07..6a9aec8 100644
--- a/doc/stats/conntrackd.conf
+++ b/doc/stats/conntrackd.conf
@@ -6,9 +6,9 @@ General {
# Enable systemd support. If conntrackd is compiled with the proper
# configuration, you can use a systemd service unit of Type=notify
# and use conntrackd with systemd watchdog as well.
- # Default is: on
+ # Default is: off
#
- #Systemd off
+ #Systemd on
#
# Set the nice value of the daemon. This value goes from -20
diff --git a/doc/sync/alarm/conntrackd.conf b/doc/sync/alarm/conntrackd.conf
index 39deb47..225d1c9 100644
--- a/doc/sync/alarm/conntrackd.conf
+++ b/doc/sync/alarm/conntrackd.conf
@@ -221,9 +221,9 @@ General {
# Enable systemd support. If conntrackd is compiled with the proper
# configuration, you can use a systemd service unit of Type=notify
# and use conntrackd with systemd watchdog as well.
- # Default is: on
+ # Default is: off
#
- #Systemd off
+ #Systemd on
#
# Set the nice value of the daemon, this value goes from -20
diff --git a/doc/sync/ftfw/conntrackd.conf b/doc/sync/ftfw/conntrackd.conf
index 60d7d97..228674c 100644
--- a/doc/sync/ftfw/conntrackd.conf
+++ b/doc/sync/ftfw/conntrackd.conf
@@ -244,9 +244,9 @@ General {
# Enable systemd support. If conntrackd is compiled with the proper
# configuration, you can use a systemd service unit of Type=notify
# and use conntrackd with systemd watchdog as well.
- # Default is: on
+ # Default is: off
#
- #Systemd off
+ #Systemd on
#
# Set the nice value of the daemon, this value goes from -20
diff --git a/doc/sync/notrack/conntrackd.conf b/doc/sync/notrack/conntrackd.conf
index b9d42ba..3becd91 100644
--- a/doc/sync/notrack/conntrackd.conf
+++ b/doc/sync/notrack/conntrackd.conf
@@ -283,9 +283,9 @@ General {
# Enable systemd support. If conntrackd is compiled with the proper
# configuration, you can use a systemd service unit of Type=notify
# and use conntrackd with systemd watchdog as well.
- # Default is: on
+ # Default is: off
#
- #Systemd off
+ #Systemd on
#
# Set the nice value of the daemon, this value goes from -20
diff --git a/src/read_config_yy.y b/src/read_config_yy.y
index 58ad2d0..6052390 100644
--- a/src/read_config_yy.y
+++ b/src/read_config_yy.y
@@ -1864,8 +1864,8 @@ init_config(char *filename)
CONFIG(stats).syslog_facility = -1;
CONFIG(netlink).subsys_id = -1;
- /* enable systemd by default */
- CONFIG(systemd) = 1;
+ /* disable systemd by default */
+ CONFIG(systemd) = 0;
/* Initialize list of user-space helpers */
INIT_LIST_HEAD(&CONFIG(cthelper).list);
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH conntrackd] conntrackd: Disable systemd support by default
2016-02-16 19:09 [PATCH conntrackd] conntrackd: Disable systemd support by default Pablo Neira Ayuso
@ 2016-02-17 7:50 ` Arturo Borrero Gonzalez
2016-02-17 11:06 ` Pablo Neira Ayuso
0 siblings, 1 reply; 3+ messages in thread
From: Arturo Borrero Gonzalez @ 2016-02-17 7:50 UTC (permalink / raw)
To: Pablo Neira Ayuso; +Cc: Netfilter Development Mailing list
On 16 February 2016 at 20:09, Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> By default, conntrackd is compiled with no built-in systemd support.
> This patch updates the default runtime behaviour to be consistent
> with what ./configure provides by default.
>
> Thus, users should explicitly indicate "Systemd On" in their configuration
> file to enable this.
>
> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
> ---
> conntrackd.conf.5 | 4 ++--
> doc/stats/conntrackd.conf | 4 ++--
> doc/sync/alarm/conntrackd.conf | 4 ++--
> doc/sync/ftfw/conntrackd.conf | 4 ++--
> doc/sync/notrack/conntrackd.conf | 4 ++--
> src/read_config_yy.y | 4 ++--
> 6 files changed, 12 insertions(+), 12 deletions(-)
>
[...]
> diff --git a/src/read_config_yy.y b/src/read_config_yy.y
> index 58ad2d0..6052390 100644
> --- a/src/read_config_yy.y
> +++ b/src/read_config_yy.y
> @@ -1864,8 +1864,8 @@ init_config(char *filename)
> CONFIG(stats).syslog_facility = -1;
> CONFIG(netlink).subsys_id = -1;
>
> - /* enable systemd by default */
> - CONFIG(systemd) = 1;
> + /* disable systemd by default */
> + CONFIG(systemd) = 0;
>
> /* Initialize list of user-space helpers */
> INIT_LIST_HEAD(&CONFIG(cthelper).list);
If we change this logic, there are a parser rules that need changes as well.
[...]
systemd: T_SYSTEMD T_ON { /* already enabled in init_config() */ };
systemd: T_SYSTEMD T_OFF
{
conf.systemd = 0;
};
[...]
I agree with the patch, so
Acked-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
--
Arturo Borrero González
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH conntrackd] conntrackd: Disable systemd support by default
2016-02-17 7:50 ` Arturo Borrero Gonzalez
@ 2016-02-17 11:06 ` Pablo Neira Ayuso
0 siblings, 0 replies; 3+ messages in thread
From: Pablo Neira Ayuso @ 2016-02-17 11:06 UTC (permalink / raw)
To: Arturo Borrero Gonzalez; +Cc: Netfilter Development Mailing list
On Wed, Feb 17, 2016 at 08:50:26AM +0100, Arturo Borrero Gonzalez wrote:
> On 16 February 2016 at 20:09, Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> > By default, conntrackd is compiled with no built-in systemd support.
> > This patch updates the default runtime behaviour to be consistent
> > with what ./configure provides by default.
> >
> > Thus, users should explicitly indicate "Systemd On" in their configuration
> > file to enable this.
> >
> > Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
> > ---
> > conntrackd.conf.5 | 4 ++--
> > doc/stats/conntrackd.conf | 4 ++--
> > doc/sync/alarm/conntrackd.conf | 4 ++--
> > doc/sync/ftfw/conntrackd.conf | 4 ++--
> > doc/sync/notrack/conntrackd.conf | 4 ++--
> > src/read_config_yy.y | 4 ++--
> > 6 files changed, 12 insertions(+), 12 deletions(-)
> >
> [...]
> > diff --git a/src/read_config_yy.y b/src/read_config_yy.y
> > index 58ad2d0..6052390 100644
> > --- a/src/read_config_yy.y
> > +++ b/src/read_config_yy.y
> > @@ -1864,8 +1864,8 @@ init_config(char *filename)
> > CONFIG(stats).syslog_facility = -1;
> > CONFIG(netlink).subsys_id = -1;
> >
> > - /* enable systemd by default */
> > - CONFIG(systemd) = 1;
> > + /* disable systemd by default */
> > + CONFIG(systemd) = 0;
> >
> > /* Initialize list of user-space helpers */
> > INIT_LIST_HEAD(&CONFIG(cthelper).list);
>
> If we change this logic, there are a parser rules that need changes as well.
>
> [...]
> systemd: T_SYSTEMD T_ON { /* already enabled in init_config() */ };
> systemd: T_SYSTEMD T_OFF
> {
> conf.systemd = 0;
> };
I'll fix this, we should anyway explicitly set on/off this based on
what the parser sees, ie.
systemd: T_SYSTEMD T_ON { conf.systemd = 1; };
systemd: T_SYSTEMD T_OFF { conf.systemd = 0; };
And remove the default setting to zero, it's not required.
> [...]
>
> I agree with the patch, so
>
> Acked-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Will send a v2 including this. Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-02-17 11:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-16 19:09 [PATCH conntrackd] conntrackd: Disable systemd support by default Pablo Neira Ayuso
2016-02-17 7:50 ` Arturo Borrero Gonzalez
2016-02-17 11:06 ` Pablo Neira Ayuso
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.