NetworkManager/src/devices/team
Beniamino Galvani 4fe884ad7e team: wait that existing instance is killed before starting teamd again
teamd uses a PID file to guarantee a single instance is running for
each device. If we spawn a new teamd process without waiting the
termination of the existing one, the new process can fail:

 <debug> [1486191713.2530] kill child process 'teamd' (2676): wait for process to terminate after sending SIGTERM (15) (send SIGKILL in 2000 milliseconds)...
 ...
 <debug> [1486191713.2539] device[0x7f737f5d7c40] (team1): running: /usr/bin/teamd -o -n -U -D -N -t team1 -c {"runner": {"name": "activebackup"}} -gg
 Using team device "team1".
 Using PID file "/var/run/teamd/team1.pid"
 This program is not intended to be run as root.
 Daemon already running on PID 2676.
 Failed: File exists

To avoid this, keep track that a kill is in progress and postpone the
start of teamd.

https://bugzilla.redhat.com/show_bug.cgi?id=1415641
2017-09-01 09:40:21 +02:00
..
nm-device-team.c team: wait that existing instance is killed before starting teamd again 2017-09-01 09:40:21 +02:00
nm-device-team.h build: don't add subdirectories to include search path but require qualified include 2016-11-21 14:26:37 +01:00
nm-team-factory.c build: don't add subdirectories to include search path but require qualified include 2016-11-21 14:26:37 +01:00