# State script on app/container updates

**URL:** <https://hub.mender.io/t/state-script-on-app-container-updates/6430>\
**Category:** General Discussions\
**Tags:** state-scripts\
**Created:** [December 25, 2023, 4:32pm UTC](https://hub.mender.io/t/state-script-on-app-container-updates/6430 "2023-12-25T16:32:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zivkapl](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/zivkapl/32/2061_2.png) [@zivkapl](https://hub.mender.io/u/zivkapl)\
**Post date:** [December 25, 2023, 4:32pm UTC](https://hub.mender.io/t/state-script-on-app-container-updates/6430/1 "2023-12-25T16:32:53Z")

</div>

Hi,

I understand the concept and use of the state script.  
However, the documentation is not clear as if it is only applied for rootfs stile update, or can it be used for lighter updates such as container or app updates?

Thank you

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [December 26, 2023, 9:19pm UTC](https://hub.mender.io/t/state-script-on-app-container-updates/6430/2 "2023-12-26T21:19:13Z")

</div>

hi @zivkapl,

State scripts can be used for every kind of artifact. The only relevant distinction is between those that are permanently available on the active root filesystem, such as the `Idle_Enter` state scripts, and those that are shipped with an artifact, like `ArtifactInstall_Enter`.

Greetz,  
Josef
