Project

General

Profile

« Previous | Next » 

Revision 6b7b05e0

Added by Evgeni Golov about 2 years ago

Fixes #34824 - properly restart foreman when puma config changed

we need to restart foreman.service before a (possible) restart of
foreman.socket, as the later also does restart foreman.service which
leads to foreman.socket being started instead of restarted

/Service[foreman.socket]: Starting to evaluate the resource (2265 of 2522)
Executing: '/bin/systemctl is-active -- foreman.socket'
Executing: '/bin/systemctl restart -- foreman.socket'
/Service[foreman]: Starting to evaluate the resource (2266 of 2522)
Executing: '/bin/systemctl is-active -- foreman'
Executing: '/bin/systemctl show --property=NeedDaemonReload -- foreman'
Executing: '/bin/systemctl daemon-reload'
Executing: '/bin/systemctl unmask -- foreman'
Executing: '/bin/systemctl start -- foreman'
Executing: '/bin/systemctl is-enabled -- foreman'
/Stage[main]/Foreman::Service/Service[foreman]/ensure: ensure changed 'stopped' to 'running'

But in this case the now running foreman.service didn't see the changes
to the service file that daemon-reload would have loaded.

  • added
  • modified
  • copied
  • renamed
  • deleted