Skip to content

Commit 4560867

Browse files
committed
Remove lifecycled
1 parent bf74c86 commit 4560867

File tree

6 files changed

+0
-62
lines changed

6 files changed

+0
-62
lines changed

packer/linux/buildkite-ami.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@
4545
"type": "shell",
4646
"script": "scripts/install-cloudwatch-agent.sh"
4747
},
48-
{
49-
"type": "shell",
50-
"script": "scripts/install-lifecycled.sh"
51-
},
5248
{
5349
"type": "shell",
5450
"script": "scripts/install-docker.sh"

packer/linux/conf/bin/bk-install-elastic-stack.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -176,15 +176,6 @@ if [[ -n "${BUILDKITE_ELASTIC_BOOTSTRAP_SCRIPT}" ]] ; then
176176
rm /tmp/elastic_bootstrap
177177
fi
178178

179-
cat << EOF > /etc/lifecycled
180-
AWS_REGION=${AWS_REGION}
181-
LIFECYCLED_HANDLER=/usr/local/bin/stop-agent-gracefully
182-
LIFECYCLED_CLOUDWATCH_GROUP=/buildkite/lifecycled
183-
EOF
184-
185-
systemctl enable lifecycled.service
186-
systemctl start lifecycled
187-
188179
# wait for docker to start
189180
next_wait_time=0
190181
until docker ps || [ $next_wait_time -eq 5 ]; do

packer/linux/scripts/install-lifecycled.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

packer/windows/buildkite-ami.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@
4444
"type": "powershell",
4545
"script": "scripts/install-cloudwatch-agent.ps1"
4646
},
47-
{
48-
"type": "powershell",
49-
"script": "scripts/install-lifecycled.ps1"
50-
},
5147
{
5248
"type": "powershell",
5349
"script": "scripts/install-docker.ps1"

packer/windows/conf/bin/bk-install-elastic-stack.ps1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,6 @@ disconnect-after-job=${Env:BUILDKITE_TERMINATE_INSTANCE_AFTER_JOB}
139139
"@
140140
$OFS=" "
141141

142-
nssm set lifecycled AppEnvironmentExtra :AWS_REGION=$Env:AWS_REGION
143-
nssm set lifecycled AppEnvironmentExtra +LIFECYCLED_HANDLER="C:\buildkite-agent\bin\stop-agent-gracefully.ps1"
144-
Restart-Service lifecycled
145-
146142
# wait for docker to start
147143
$next_wait_time=0
148144
do {

packer/windows/scripts/install-lifecycled.ps1

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)