Skip to content

Commit

Permalink
fix: sysvinit service definition and windows start
Browse files Browse the repository at this point in the history
  • Loading branch information
pgimalac committed Dec 31, 2024
1 parent ae899ca commit 9ea4dff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/agent/subcommands/run/command_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func StartAgentWithDefaults(ctxChan <-chan context.Context) (<-chan error, error
agentAPI internalAPI.Component,
_ packagesigning.Component,
statusComponent status.Component,
collector collector.Component,
// collector collector.Component,
cloudfoundrycontainer cloudfoundrycontainer.Component,
_ autoexit.Component,
_ expvarserver.Component,
Expand Down Expand Up @@ -155,7 +155,7 @@ func StartAgentWithDefaults(ctxChan <-chan context.Context) (<-chan error, error
invChecks,
logsReceiver,
statusComponent,
collector,
// collector,
config,
cloudfoundrycontainer,
jmxlogger,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# Description: Datadog Agent
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Should-Start: datadog-agent-process datadog-agent-trace datadog-agent-security
# Should-Stop: datadog-agent-process datadog-agent-trace datadog-agent-security
# Should-Start: datadog-agent-checks datadog-agent-process datadog-agent-trace datadog-agent-security
# Should-Stop: datadog-agent-checks datadog-agent-process datadog-agent-trace datadog-agent-security
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
Expand Down Expand Up @@ -71,6 +71,7 @@ start_and_wait()
if [ "$?" -eq "1" ]; then
# We've started up successfully. Exit cleanly
log_end_msg 0
service datadog-agent-checks start
service datadog-agent-process start
service datadog-agent-trace start
service datadog-agent-security start
Expand Down Expand Up @@ -113,6 +114,7 @@ stop_and_wait()
case "$?" in
0|1)
log_end_msg 0
service datadog-agent-checks stop
service datadog-agent-process stop
service datadog-agent-trace stop
service datadog-agent-security stop
Expand Down

0 comments on commit 9ea4dff

Please sign in to comment.