State script clarifications

dimaxano
Thu, 02 Dec 2021 08:52:46 +0000
General Discussions

Hi!
After reading State Scripts section in docs I’m still unclear about its behavior.

1. Is there difference where to put state-scripts: /etc/mender/scripts or /data/mender/scripts?

2. If I want to run an ArtifactInstall_Enter script (single script for any artifact), should I provide it with each Artifact or I can just put it in one of directories above?

3. Can I write state script for (Enter/Leave) Cleanup state? Not a single word about it in docs

Thank you!

7 posts - 2 participants