# Standalone deployment ArtifactReboot\_Leave not working

**URL:** <https://hub.mender.io/t/standalone-deployment-artifactreboot-leave-not-working/7463>\
**Category:** Update Modules\
**Created:** [January 17, 2025, 7:06pm UTC](https://hub.mender.io/t/standalone-deployment-artifactreboot-leave-not-working/7463 "2025-01-17T19:06:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbutler](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@jbutler](https://hub.mender.io/u/jbutler)\
**Post date:** [January 17, 2025, 7:06pm UTC](https://hub.mender.io/t/standalone-deployment-artifactreboot-leave-not-working/7463/1 "2025-01-17T19:06:10Z")

</div>

I creating a mender update using yocto. I’m using PREFERRED\_VERSION\_mender = “4.0.4”. The following is my recipe to add the state scripts

LICENSE=“CLOSED”  
FILESEXTRAPATHS:prepend := “${THISDIR}/files:”  
SRC\_URI = “file://ArtifactReboot-Leave-10   
file://ArtifactInstall-Enter-10”

S = “${WORKDIR}”

inherit mender-state-scripts

do\_compile() {  
cp ArtifactInstall-Enter-10 ${MENDER\_STATE\_SCRIPTS\_DIR}/ArtifactInstall\_Enter\_10  
cp ArtifactReboot-Leave-10 ${MENDER\_STATE\_SCRIPTS\_DIR}/ArtifactReboot\_Leave\_00  
}

The ArtifactInstall\_Enter runs fine but the ArtifactReboot\_Leave doesn’t run.

At which stage of the reboot should I expect ArtifactReboot\_Leave to run? Obviously the kernel must be booted but which other services will have started when ArtifactReboot\_Leave runs? Will the file system be mounted when it runs ? Is there a log I can look at to see and error message if it failed?

---

<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:** [January 20, 2025, 8:26am UTC](https://hub.mender.io/t/standalone-deployment-artifactreboot-leave-not-working/7463/2 "2025-01-20T08:26:46Z")

</div>

Hi @jbutler,

If the Mender Client is not running in daemon mode, the consumer/wrapper around it is expected to handle some things itself, including the reboot and all connected logic. Therefore not all states are available as hooks then. See also: [State scripts | Mender documentation](https://docs.mender.io/artifact-creation/state-scripts#standalone-mode)

Greetz,  
Josef
