ajcrowe / puppet-supervisord

Puppet Module to install and configure applications under supervisord
MIT License
37 stars 104 forks source link

Remove running programs when configs are removed. #126

Closed quanghiem closed 5 years ago

quanghiem commented 5 years ago

When you remove a Supervisord program with param config_include_purge => true, the config file is removed but Supervisord isn't notified so the process is still running.

This change triggers supervisord::reload (reread and update) to remove the program.

Similar to PR https://github.com/ajcrowe/puppet-supervisord/pull/125, but does a supervisord::reload instead of a supervisors::service, which restarts the Supervisord daemon.