[PATCH] add teamd.conf.in to EXTRA_DIST
by Pawel Wieczorkiewicz
Signed-off-by: Pawel Wieczorkiewicz <pwieczorkiewicz(a)suse.de>
---
teamd/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/teamd/Makefile.am b/teamd/Makefile.am
index 0294492..904d76c 100644
--- a/teamd/Makefile.am
+++ b/teamd/Makefile.am
@@ -21,7 +21,7 @@ teamd_SOURCES=teamd.c teamd_common.c teamd_json.c teamd_config.c teamd_state.c \
teamd_runner_basic_ones.c teamd_runner_activebackup.c \
teamd_runner_loadbalance.c teamd_runner_lacp.c
-EXTRA_DIST = example_configs dbus redhat
+EXTRA_DIST = example_configs dbus redhat teamd.conf.in
noinst_HEADERS = teamd.h teamd_workq.h teamd_bpf_chef.h teamd_ctl.h \
teamd_json.h teamd_dbus.h teamd_zmq.h teamd_usock.h \
--
2.1.4
8 years, 6 months
[jpirko/libteam] 2d240e: teamd: add Before=network.target to systemd servic...
by GitHub
Branch: refs/heads/master
Home: https://github.com/jpirko/libteam
Commit: 2d240e58e07301f40f0b464d84be70e45ceb383d
https://github.com/jpirko/libteam/commit/2d240e58e07301f40f0b464d84be70e4...
Author: Xin Long <lucien.xin(a)gmail.com>
Date: 2015-10-05 (Mon, 05 Oct 2015)
Changed paths:
M teamd/redhat/systemd/teamd@.service
Log Message:
-----------
teamd: add Before=network.target to systemd service file
teamd.service actually is managed by network.service in ifup(down)Team, which
means it should not be started or shutdown by systemd when system boot/shutdown.
but now when system is shutdown, systemd may closed the teamd.service before
closing the network.service if it find teamd is active.
there exists an issue: if another service depends network.servie, maybe teamd
service will shutdown ealier than it. cause systemd close them concurrently. but
if it is necessary for that service to ensure the iface up, that service will
not be able to work.
this issue also exits in nfs over team.
so we can fix it by adding Before=network.target to systemd service file to make
sure teamd service will shutdown by network.service in ifdownTeam script.
it can work well without side effects. for booting, teamd@.service has no
[install] field and is always in disabled status, so systemd never start it
automatically. for shutdown, ifdown-Team will stop it by "/usr/bin/systemctl
stop teamd@${DEVICE}.service...". then systeamd won't stop it automatically
again.
Signed-off-by: Xin Long <lucien.xin(a)gmail.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
Commit: 00ba73f359eec3ed08ed8e8bedde5ca130242bd9
https://github.com/jpirko/libteam/commit/00ba73f359eec3ed08ed8e8bedde5ca1...
Author: Jiri Pirko <jiri(a)resnulli.us>
Date: 2015-10-05 (Mon, 05 Oct 2015)
Changed paths:
M configure.ac
Log Message:
-----------
1.19 release
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
Compare: https://github.com/jpirko/libteam/compare/05fbaf2df129...00ba73f359ee
8 years, 6 months
[PATCH] teamd: add Before=network.target to systemd service file
by Xin Long
teamd.service actually is managed by network.service in ifup(down)Team, which
means it should not be started or shutdown by systemd when system boot/shutdown.
but now when system is shutdown, systemd may closed the teamd.service before
closing the network.service if it find teamd is active.
there exists an issue: if another service depends network.servie, maybe teamd
service will shutdown ealier than it. cause systemd close them concurrently. but
if it is necessary for that service to ensure the iface up, that service will
not be able to work.
this issue also exits in nfs over team.
so we can fix it by adding Before=network.target to systemd service file to make
sure teamd service will shutdown by network.service in ifdownTeam script.
it can work well without side effects. for booting, teamd@.service has no
[install] field and is always in disabled status, so systemd never start it
automatically. for shutdown, ifdown-Team will stop it by "/usr/bin/systemctl
stop teamd@${DEVICE}.service...". then systeamd won't stop it automatically
again.
Signed-off-by: Xin Long <lucien.xin(a)gmail.com>
---
teamd/redhat/systemd/teamd@.service | 1 +
1 file changed, 1 insertion(+)
diff --git a/teamd/redhat/systemd/teamd@.service b/teamd/redhat/systemd/teamd@.service
index 7dfec14..3a39a26 100644
--- a/teamd/redhat/systemd/teamd@.service
+++ b/teamd/redhat/systemd/teamd@.service
@@ -1,5 +1,6 @@
[Unit]
Description=Team Daemon for device %I
+Before=network.target
[Service]
BusName=org.libteam.teamd.%i
--
2.1.0
8 years, 6 months