# State-Scripts do not get executed

**URL:** <https://hub.mender.io/t/state-scripts-do-not-get-executed/3901>\
**Category:** General Discussions\
**Created:** [July 19, 2021, 12:15pm UTC](https://hub.mender.io/t/state-scripts-do-not-get-executed/3901 "2021-07-19T12:15:27Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [July 22, 2021, 7:53am UTC](https://hub.mender.io/t/state-scripts-do-not-get-executed/3901/4 "2021-07-22T07:53:58Z")

</div>

There is a predefined list of state scripts that can run from `/etc/mender/scripts`, and these are:

- `Idle`
- `Sync`
- `Download`

All the others that have an `Artifact` prefix need to be added to the artifact using the `-s` option.

---

_[View the full topic](https://hub.mender.io/t/state-scripts-do-not-get-executed/3901)._
