Skip to content

Is there feature like "if file x is changed, then run script y"? #2024

Answered by twpayne
k4leg asked this question in Q&A
Discussion options

You must be logged in to vote

No, there's no such feature built in, but you can achieve this with a run_after_ script that checks the checksum of the config file and restarts the service if the checksum has changed.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by k4leg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants