Skip to content

Commit

Permalink
Merge pull request #53 from Dynatrace/mitigate-draining-issues
Browse files Browse the repository at this point in the history
added reparation attempt to start-stage scripts
  • Loading branch information
arthfl committed Jan 13, 2020
2 parents e1dfb45 + 0b0dd70 commit 30d58fa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jobs/dynatrace-oneagent/templates/start-oneagent.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ setWatchdogPid() {
checkForInstaller

if ! runServiceCommand start; then
exit 1
echo "Couldn't start OneAgent service, trying to repair environment by re-running installation procedure"
"$(dirname "${BASH_SOURCE[0]}")/pre-start"

if ! runServiceCommand start; then
echo "ERROR: Reparation meassures failed, exiting"
exit 1
fi
fi

setWatchdogPid

0 comments on commit 30d58fa

Please sign in to comment.