Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[packaging][centos] Improve service (systemd + init script) #3477

Merged
merged 2 commits into from
Aug 18, 2017

Conversation

olivielpeau
Copy link
Member

What does this PR do?

  • Makes agent service depend on remote_fs and network services on CentOS (LSB headers): this should hopefully give more guarantees that the agent service doesn't start up too early in the boot process.
  • Move systemd service files up one directory, required by [centos] Improve systemd and service restart behaviors dd-agent-omnibus#194 : that PR makes these files common to debian/centos/suse packages.

Testing Guidelines

These changes pass dd-agent-testing.

This should hopefully ensure that the agent doesn't start too early in
the system startup process.
They're common to debian/centos/suse now.
@olivielpeau olivielpeau merged commit 6ff8900 into master Aug 18, 2017
@olivielpeau olivielpeau deleted the olivielpeau/centos-improve-service branch August 18, 2017 19:05
@truthbk
Copy link
Member

truthbk commented Aug 21, 2017

@hegyre
Copy link

hegyre commented Aug 31, 2017

Hello,

Is there a possibility to have the reload command working ?

Currently with v5.17, we can only use the restart command..
Old behavior (with version <= 5.16) acted like this when we issued a reload:

systemctl reload datadog-agent.service

systemctl status datadog-agent.service
Sep 01 00:30:10 dcsjp-web-qas-to-i-076fad0601d1bd713.jp.pmi-dcs.com dd.collector[2322]: INFO (agent.py:123): SIGHUP caught! Scheduling configuration reload... run.
Sep 01 00:30:10 dcsjp-web-qas-to-i-076fad0601d1bd713.jp.pmi-dcs.com systemd[1]: Reloaded LSB: Start and start datadog-agent.

With version 5.17, the behavior is now:

systemctl reload datadog-agent.service

Failed to reload datadog-agent.service: Job type reload is not applicable for unit datadog-agent.service.
See system logs and 'systemctl status datadog-agent.service' for details.

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants