Skip to content

Restart telegraf service if it is already running and upgraded via RPM #3516

@druchoo

Description

@druchoo

Feature Request

If RPM package is upgraded and the telegraf service is running have postscript restart service.

Proposal:

Current behavior:

Service is not restarted if already running and upgraded via RPM

Desired behavior:

Restart service if it is already running and upgraded via RPM

Use case: [Why is this important (helps with prioritizing requests)]

According to https://fedoraproject.org/wiki/Packaging:Scriptlets#Systemd

On upgrade, a package may only restart a service if it is running; it may not start it if it is off.

I think restarts were removed from #3015?

This behavior is probably a matter of preference but the reasoning is if you're upgrading telegraf it is intentional and you want to use the new version. Currently a manual restart is needed if the service is already running and an upgrade is performed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions