Re: [Puppet Users] Manage Amavisd Service

2023-12-01 Thread 'Kenyon Ralph' via Puppet Users
On Friday, December 1, 2023 at 10:17:29 AM UTC-8 jochen@gmail.com wrote: Hi Nick, good point! As of the debug log, it seems to issue the start command, although the dog says that puppet would use the restart command if hasrestart is set to true I will have to wait for the problem to reoccu

Re: [Puppet Users] Manage Amavisd Service

2023-12-01 Thread Jochen Haeberle
Hi Nick, good point! As of the debug log, it seems to issue the start command, although the dog says that puppet would use the restart command if hasrestart is set to true I will have to wait for the problem to reoccur to finally test this. Thanks a lot > Am 01.12.2023 um 19:10 schrieb Nick B

Re: [Puppet Users] Manage Amavisd Service

2023-12-01 Thread Nick Bertrand
Hi Jochen, When amavis is in the broken state, does `service amavis start` fix it or is it just `service amavis restart` that fixes it? If 'restart' works, but 'start' doesn't, I wonder if Puppet is running the start command instead of restart. Running the puppet agent in debug mode should show yo

Re: [Puppet Users] Manage Amavisd Service

2023-12-01 Thread Jochen Haeberle
now I have a declaration that kicks in when the problem occurs: service { 'amavis': hasrestart => true, provider => 'systemd', restart => '/usr/sbin/service amavis restart', status => '/usr/bin/systemctl is-active --quiet amavis && [ "$(/usr/bin/systemctl show -p S

Re: [Puppet Users] Manage Amavisd Service

2023-11-28 Thread Jochen Haeberle
> Am 27.11.2023 um 17:54 schrieb 'Kenyon Ralph' via Puppet Users > : > > The service restarts manually fine with service amavis restart > > The question is not why it died but how to get it running again using Puppet. > > Puppet simply runs systemctl start amavis if you have ensure => runnin

Re: [Puppet Users] Manage Amavisd Service

2023-11-27 Thread 'Kenyon Ralph' via Puppet Users
On Sunday, November 26, 2023 at 4:13:37 AM UTC-8 jochen@gmail.com wrote: Am 25.11.2023 um 22:16 schrieb 'Kenyon Ralph' via Puppet Users < puppet...@googlegroups.com>: This is a problem with amavis, not puppet. You'll need to do systemctl status amavis, journalctl --pager-end --unit amavis

Re: [Puppet Users] Manage Amavisd Service

2023-11-26 Thread Jochen Haeberle
> Am 25.11.2023 um 22:16 schrieb 'Kenyon Ralph' via Puppet Users > : > > > This is a problem with amavis, not puppet. You'll need to do systemctl status > amavis, journalctl --pager-end --unit amavis, and look at amavis's own logs > to see why the service is dying or not starting. The servi

[Puppet Users] Manage Amavisd Service

2023-11-24 Thread jochen....@gmail.com
Hi, I manage a Debian Mailserver running postfix, amavis and others. I have service statements in place that should keep the server running. >From time to time, the service resource does not correctly restart the amavis service. if I do service amavis status, the output should be Active: a