-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
daemon reload problem with 3.0.0 #190
Comments
I would advise you to never use What I always end up doing is roughly: systemd::service_limits { 'php7.4-fpm.service':
limits => {
'LimitNOFILE' => 1048576,
}
restart_service => false,
notify => Service['php7.4-fpm.service'],
}
service { 'php7.4-fpm.service':
ensure => running,
enable => true,
} IMHO it should default to false. However, sadly there was just a major release and this wasn't considered. Also, it would be great if dropin has an auto collector. I took a stab at this in #191. |
Wrong ordering and double reloads are less evil than no applying changes to service at all.
So, my case shows that mentioned typically is not applicable. My code worked well on 2.x branch. |
Looks like we never finished the discussion: #171 (comment) |
Unfortunately, that commit was already merged. And now I think it caused strange behavior of module. Maybe, maintainer could say more, because on paper it really should work from the side of puppet itself on 6.1.0 and later, but it's not. |
Well, the thing is that it doesn't call the provider but just a simple |
Since 97dd16f this parameter is a bad idea. It doesn't do a daemon reload and it may restart at the wrong time. In fact, I'd argue it's always been a bad idea. The recommended alternative to this is to manage the service explicitly and let Puppe handle it. There is an automatic notify that takes care of it. Fixes voxpupuli#190
Since 97dd16f this parameter is a bad idea. It doesn't do a daemon reload and it may restart at the wrong time. In fact, I'd argue it's always been a bad idea. The recommended alternative to this is to manage the service explicitly and let Puppet handle it. There is an automatic notify that takes care of it. Fixes voxpupuli#190
Since 97dd16f this parameter is a bad idea. It doesn't do a daemon reload and it may restart at the wrong time. In fact, I'd argue it's always been a bad idea. The recommended alternative to this is to manage the service explicitly and let Puppet handle it. There is an automatic notify that takes care of it. Fixes voxpupuli#190
So I’m facing the same issue with # puppet agent -t --environment production
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for [SNIPPED]
Info: Applying configuration version '1622498808'
[SNIPPED]
Notice: /Stage[main]/Borg::Service/Systemd::Timer[borgmatic.timer]/Systemd::Unit_file[borgmatic.service]/File[/etc/systemd/system/borgmatic.service]/content:
--- /etc/systemd/system/borgmatic.service 2021-05-30 04:19:31.089365703 +0000
+++ /tmp/puppet-file20210531-5640-pz2ss 2021-05-31 22:07:04.408630248 +0000
[SNIPPED]
Notice: /Stage[main]/Borg::Service/Systemd::Timer[borgmatic.timer]/Systemd::Unit_file[borgmatic.service]/File[/etc/systemd/system/borgmatic.service]/content: content changed '{sha256}ddf42ac6fb4bbfd1b74a0cee34a74
a1f5f0aa96e81c3073c4c347ca55e9cc59c' to '{sha256}cbae81dba4beea3415750275e16a57ba15769d6cf2c736de24e6c49ae270e4c0'
Notice: Applied catalog in 10.35 seconds
# systemctl show --property=NeedDaemonReload borgmatic.service
NeedDaemonReload=yes |
It sounds like |
need to trigger a `systemctl daemon-reload` when the .service file is changed. systemd::timer { 'foo.timer': timer_content => $foo_timer, service_content => $foo_service, active => true, enable => true, } results in a foo.service that is neither active nor enabled. It is a "static" unit that will be triggered by the foo.timer alone. This fixes voxpupuli#190 and more specifically: voxpupuli#190 (comment) Signed-off-by: Simon Deziel <[email protected]>
a `systemctl daemon-reload` when the .service file is changed. systemd::timer { 'foo.timer': timer_content => $foo_timer, service_content => $foo_service, active => true, enable => true, } results in a foo.service that is neither active nor enabled. It is a "static" unit that will be triggered by the foo.timer alone. This fixes voxpupuli#190 and more specifically: voxpupuli#190 (comment) Signed-off-by: Simon Deziel <[email protected]>
a `systemctl daemon-reload` when the .service file is changed. systemd::timer { 'foo.timer': timer_content => $foo_timer, service_content => $foo_service, active => true, enable => true, } results in a foo.service that is neither active nor enabled. It is a "static" unit that will be triggered by the foo.timer alone. This fixes voxpupuli#190 and more specifically: voxpupuli#190 (comment) Signed-off-by: Simon Deziel <[email protected]>
Services that are deployed by systemd::timer need to trigger a `systemctl daemon-reload` when the .service file is changed. systemd::timer { 'foo.timer': timer_content => $foo_timer, service_content => $foo_service, active => true, enable => true, } results in a foo.service that is neither active nor enabled. It is a "static" unit that will be triggered by the foo.timer alone. This fixes voxpupuli#190 and more specifically: voxpupuli#190 (comment) Signed-off-by: Simon Deziel <[email protected]>
Since 97dd16f this parameter is a bad idea. It doesn't do a daemon reload and it may restart at the wrong time. In fact, I'd argue it's always been a bad idea. The recommended alternative to this is to manage the service explicitly and let Puppet handle it. There is an automatic notify that takes care of it. Fixes voxpupuli#190
Services that are deployed by systemd::timer need to trigger a `systemctl daemon-reload` when the .service file is changed. systemd::timer { 'foo.timer': timer_content => $foo_timer, service_content => $foo_service, active => true, enable => true, } results in a foo.service that is neither active nor enabled. It is a "static" unit that will be triggered by the foo.timer alone. This fixes #190 and more specifically: voxpupuli/puppet-systemd#190 (comment) Signed-off-by: Simon Deziel <[email protected]>
Since 97dd16f this parameter is a bad idea. It doesn't do a daemon reload and it may restart at the wrong time. In fact, I'd argue it's always been a bad idea. The recommended alternative to this is to manage the service explicitly and let Puppet handle it. There is an automatic notify that takes care of it. Fixes voxpupuli#190
Since 97dd16f this parameter is a bad idea. It doesn't do a daemon reload and it may restart at the wrong time. In fact, I'd argue it's always been a bad idea. The recommended alternative to this is to manage the service explicitly and let Puppet handle it. There is an automatic notify that takes care of it. Fixes voxpupuli#190
Since 97dd16f this parameter is a bad idea. It doesn't do a daemon reload and it may restart at the wrong time. In fact, I'd argue it's always been a bad idea. The recommended alternative to this is to manage the service explicitly and let Puppet handle it. There is an automatic notify that takes care of it. Fixes voxpupuli#190
Since 97dd16f this parameter is a bad idea. It doesn't do a daemon reload and it may restart at the wrong time. In fact, I'd argue it's always been a bad idea. The recommended alternative to this is to manage the service explicitly and let Puppet handle it. There is an automatic notify that takes care of it. Fixes voxpupuli#190
Since 97dd16f this parameter is a bad idea. It doesn't do a daemon reload and it may restart at the wrong time. In fact, I'd argue it's always been a bad idea. The recommended alternative to this is to manage the service explicitly and let Puppet handle it. There is an automatic notify that takes care of it. Fixes voxpupuli#190
After updating to 3.0.0 limits configuration seems to be broken.
In the manifest I have:
Puppet applied this code and tried to perform service restart:
Exec[restart php7.4-fpm.service because limits]
But in fact, new limits were not applied, because of lack of daemon reload. By code I see there is call of:
systemctl restart php7.4-fpm.service
By running it by hand after puppet run, I got:
So, I need to reload daemon manually, and then restart the service.
OS Debian 10.9
Puppet server 7.1.0
Puppet agent 7.5.0
The text was updated successfully, but these errors were encountered: