Hi Xander,
I've noticed that as well, it is introduced by the following
change in 3.18
cf-execd now runs cf-agent from a child process instead of a thread on POSIX systems (ENT-6182)
--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to help-cfengin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/d9f6431e-c269-41d5-b60f-a1054c208b5dn%40googlegroups.com.
Hello there
I am hitting a related problem in Debian 11.
I have just ported by policies from 3.15.5 to 3.18.1. I got both CFEngine and systemd complaining about the duplicated process so I applied Nick's patch, and now I have a different problem.
I have not completely understood what's going on. Is it cf-agent that starts a new cf-execd? Or is it cf-execd that clones itself and then spawns cf-agent, but then doesn't terminate? Whatever it is, when the new agent run starts, one cf-execd is killed (by what?), then the agent starts, and then systemd complains again about the duplicated cf-execd... I am trying to figure out, but my brain is already in bed tonight.
Anyone who knows better about the changes around cf-execd in 3.18 and understands what the heck is going on here? And, especially, how to fix this?
Mar 13 21:43:54 minardi systemd[1]: cf-execd.service: Main process exited, code=killed, status=9/KILL Mar 13 21:43:54 minardi systemd[1]: cf-execd.service: Failed with result 'signal'. Mar 13 21:43:54 minardi systemd[1]: cf-execd.service: Unit process 60482 (cf-execd) remains running after unit stopped. Mar 13 21:43:54 minardi systemd[1]: cf-execd.service: Unit process 60483 (sh) remains running after unit stopped. Mar 13 21:43:54 minardi systemd[1]: cf-execd.service: Unit process 60503 (cf-agent) remains running after unit stopped. Mar 13 21:43:54 minardi systemd[1]: cf-execd.service: Consumed 1.083s CPU time. Mar 13 21:43:54 minardi cf-agent[60503]: CFEngine(agent) R: [INFO abort_agent_if_disabled/methods] The agent is starting. To disable, create flag file /etc/cfengine/disable Mar 13 21:43:54 minardi cf-agent[60503]: CFEngine(agent) R: [INFO main/methods] Promises version 5.28.2 from branch master Mar 13 21:43:54 minardi cf-agent[60503]: CFEngine(agent) R: [INFO main/methods] Our policy server is 52.211.82.124 Mar 13 21:43:55 minardi cf-agent[60503]: CFEngine(agent) R: [INFO apply_roles/methods] Applying roles: standard_node, cfdevnode, home_pc. Mar 13 21:44:00 minardi cf-agent[60503]: CFEngine(agent) R: [INFO main/methods] Custom configuration completed Mar 13 21:44:04 minardi systemd[1]: cf-execd.service: Scheduled restart job, restart counter is at 2. Mar 13 21:44:04 minardi systemd[1]: Stopped CFEngine Execution Scheduler. Mar 13 21:44:04 minardi systemd[1]: cf-execd.service: Consumed 4.924s CPU time. Mar 13 21:44:04 minardi systemd[1]: cf-execd.service: Found left-over process 60518 (cf-execd) in control group while starting unit. Ignoring. Mar 13 21:44:04 minardi systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies. Mar 13 21:44:04 minardi systemd[1]: Started CFEngine Execution Scheduler.
Ciao!
-- bronto
Hope the bit of extra explanation helps.