Date: Thu, 23 Feb 2023 13:29:19 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 269778] sysutils/datadog-agent: restart hangs Message-ID: <bug-269778-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269778 Bug ID: 269778 Summary: sysutils/datadog-agent: restart hangs Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: alexis.cimpu@dmatrixsoft.com CC: uros@gruber.si Flags: maintainer-feedback?(uros@gruber.si) CC: uros@gruber.si Datadog agent fails to restart on freebsd with the error below if the agent= is already stopped: # service datadog-agent restart Error: Error stopping the agent: Post "https://localhost:5001/agent/stop": = dial tcp [::1]:5001: connect: operation timed out Current workaround that seems to fix the problem is adding a check and a sl= eep in the stop or restart in rc.d of datadogagent=20 Below is a snip of current datadogagent rc.d datadog_agent_restart() { datadog_agent_stop && sleep 3 && datadog_agent_start return $? } datadog_agent_stop() { rc_pid=3D`check_pidfile ${pidfile} ${command}` if [ -n "${rc_pid}" ]; then ${command} ${command_args} stop fi return $? } --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269778-7788>