-
Notifications
You must be signed in to change notification settings - Fork 26
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
rpm: take over enabled state of systemd service from v4 #613
Conversation
enable state will be kept like this:
|
#614 should be fixed in advance. |
5df1875
to
caca57b
Compare
In the previous versions, the enabled service status of td-agent was not migrated. This commit try to take over existing td-agent service status. Note that if systemctl enable fluentd is executed in %post section, it was reverted in td-agent's %preun scriptlet. So it is enabled in %posttrans explicitly. Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
caca57b
to
a172178
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
I have commented about some test codes.
Now, these enable
are just to enable the alias.
(When taking over the enabled status.)
fluent-package/yum/systemd-test/update-to-next-version-with-backward-compat-for-v4.sh
Outdated
Show resolved
Hide resolved
Co-authored-by: Daijiro Fukuda <fukuda@clear-code.com> Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
…ckward-compat-for-v4.sh Co-authored-by: Daijiro Fukuda <fukuda@clear-code.com> Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
Co-authored-by: Daijiro Fukuda <fukuda@clear-code.com> Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
30e4e96
to
4fffa1c
Compare
NOTE: https://chocolatey.org/ is under maintenance. so https://chocolatey.org/install.ps1 is not accessible for a while. (windows CI fails) |
Thanks! |
In the previous versions, the enabled service status of td-agent was not migrated.
This commit try to take over existing td-agent service status.
Note that if systemctl enable fluentd is executed in %post section, it was reverted in td-agent's %preun scriptlet.
So it is enabled in %posttrans explicitly.
Closes: #610