Skip to content

Commit 7d8a362

Browse files
Merge pull request #3219 from craigcomstock/ent-14770/master
ent-14770: Kill all federated reporting transport user processes before attempting to remove the user
2 parents 0dd8bd4 + f2f69da commit 7d8a362

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎cfe_internal/enterprise/federation/federation.cf‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,17 @@ bundle agent clean_when_off
622622
useshell
623623
);
624624
@endif
625+
processes:
626+
".*"
627+
process_select => default:by_owner("$(user)"),
628+
signals => { "kill" },
629+
if => userexists("$(user)"),
630+
handle => "transport_user_procs_killed";
631+
625632
users:
626-
"$(user)" policy => "absent";
633+
"$(user)"
634+
policy => "absent",
635+
depends_on => { "transport_user_procs_killed" };
627636

628637
files:
629638
"$(cfengine_enterprise_federation:config.path_setup_status)" -> {

0 commit comments

Comments
 (0)