[arch-projects] [netctl][PATCH] Add EnvironmentFile into the netctl@.service
This patch adds the ability to pass environment variables to the network
script. This allows to enable debugging by adding the "NETCTL_DEBUG=yes" into
the /etc/conf.d/netctl file.
Signed-off-by: Jiri Tyr
This patch fixes the behavior when IPv4 and IPv6 is configured in the same
profile file but only IPv6 address can be acquired. Without this patch,
the process finishes right after the attempt to acquire IPv4 address and
never gets to the point where IPv6 address can be acquired.
Signed-off-by: Jiri Tyr
On Sun, Feb 1, 2015 at 12:48 PM, Jiri Tyr
This patch adds the ability to pass environment variables to the network script. This allows to enable debugging by adding the "NETCTL_DEBUG=yes" into the /etc/conf.d/netctl file.
What is the benefit of this over setting an environment in, say, /etc/netctl/hooks/environment?
On Mon, Feb 2, 2015 at 12:18 PM, Jouke Witteveen
What is the benefit of this over setting an environment in, say, /etc/netctl/hooks/environment?
Well, the motivation for this was that I could not find a way how to enable the debugging. Apart of that, using hooks enables debugging only for certain profiles. The conf.d solution enables it globally regardless the profile name. Just thinking about it, I should have documented how to enable debugging by using the file in the conf.d directory. If this patch has chance being accepted, I will add the documentation.
On Mon, Feb 2, 2015 at 2:00 PM, Jiri Tyr
On Mon, Feb 2, 2015 at 12:18 PM, Jouke Witteveen
wrote: What is the benefit of this over setting an environment in, say, /etc/netctl/hooks/environment?
Well, the motivation for this was that I could not find a way how to enable the debugging. Apart of that, using hooks enables debugging only for certain profiles. The conf.d solution enables it globally regardless the profile name.
Just thinking about it, I should have documented how to enable debugging by using the file in the conf.d directory. If this patch has chance being accepted, I will add the documentation.
You can just add "NETCTL_DEBUG=yes" to /etc/netctl/hooks/environment and you get debugging for all profiles.
Nice, I did not know that. We should definitely document this.
On Mon, Feb 2, 2015 at 2:13 PM, Jouke Witteveen
On Mon, Feb 2, 2015 at 2:00 PM, Jiri Tyr
wrote: On Mon, Feb 2, 2015 at 12:18 PM, Jouke Witteveen
wrote: What is the benefit of this over setting an environment in, say, /etc/netctl/hooks/environment?
Well, the motivation for this was that I could not find a way how to enable the debugging. Apart of that, using hooks enables debugging only for certain profiles. The conf.d solution enables it globally regardless the profile name.
Just thinking about it, I should have documented how to enable debugging by using the file in the conf.d directory. If this patch has chance being accepted, I will add the documentation.
You can just add "NETCTL_DEBUG=yes" to /etc/netctl/hooks/environment and you get debugging for all profiles.
On 2015-02-01 at 11:48 +0000, Jiri Tyr wrote:
This patch adds the ability to pass environment variables to the network script. This allows to enable debugging by adding the "NETCTL_DEBUG=yes" into the /etc/conf.d/netctl file.
[...]
I think that this can be achieved (apart from using /etc/netctl/hooks)
more elegantly by using systemd drop-ins:
# cat > /etc/systemd/system/netctl@.service.d/env.conf <
participants (3)
-
Ivan Shapovalov
-
Jiri Tyr
-
Jouke Witteveen