Skip to content

Commit cefe677

Browse files
committed
Only enable steps when installation enabled
Don't attempt to start agent-register-infraenv or apply-host-config unless either start-cluster-installation or agent-add-node is enabled. This prevents any races that could cause these units to start early and complain about dependencies having failed.
1 parent 7a30df7 commit cefe677

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

data/data/agent/systemd/units/agent-register-infraenv.service.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ RestartSec=30
2323
RemainAfterExit=true
2424

2525
[Install]
26-
WantedBy=multi-user.target
26+
WantedBy=start-cluster-installation.service agent-add-node.service

data/data/agent/systemd/units/apply-host-config.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ Type=oneshot
2323
RemainAfterExit=true
2424

2525
[Install]
26-
WantedBy=multi-user.target
26+
WantedBy=start-cluster-installation.service agent-add-node.service

0 commit comments

Comments
 (0)