Onchange command in __config_file is not executed after state change #143
Labels
No labels
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ungleich-public/cdist#143
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: lubo
When a config file state changes from present to absent, onchange command is not being run.
Created by: darko-poljak
@lubo Ah, I see in type's source that in absent case onchange is not executed. This needs to be fixed.
Created by: darko-poljak
@lubo Did you try to write full path to nginx in "--onchange" argument? Just in case.
Created by: lubo
@darko-poljak I might do that, I've opened this issue mainly as a reminder for myself. This is my use case:
I have a nginx site configuration file in
/etc/nginx/conf.d/foobar.conf. After I remove it, I want nginx to no longer serve the site. So, this is how my__config_filecommand looks like:The problem is, the site is still accessible even though the config file was removed, which implies the onchange command was not executed. It works correctly when I add or change a config file, though.
Created by: darko-poljak
@lubo Can you perhaps fix this bug?
Do you have non-working case (init manifest sample) with expected result?