# Error disabling systemd

**URL:** <https://hub.mender.io/t/error-disabling-systemd/3685>\
**Category:** General Discussions\
**Created:** [May 26, 2021, 8:54pm UTC](https://hub.mender.io/t/error-disabling-systemd/3685 "2021-05-26T20:54:54Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![sjuengst](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/sjuengst/32/633_2.png) [@sjuengst](https://hub.mender.io/u/sjuengst)\
**Post date:** [May 27, 2021, 8:36pm UTC](https://hub.mender.io/t/error-disabling-systemd/3685/5 "2021-05-27T20:36:12Z")

</div>

First, I think the documentation has a bug: `meta-mender/meta-mender-core/recipes-mender` doesn’t contain a `mender` directory (nor `mender_%.bb`), so shouldn’t my layer contain `recipes-mender/mender-client/mender-client_%.bbappend` instead?

With this change, I did a `bitbake -e mender-client` and see this:

```auto
# $SYSTEMD_AUTO_ENABLE [4 operations]

# set /yocto-src/sources/poky/meta/conf/documentation.conf:403

# [doc] "For recipes that inherit the systemd class, this variable specifies whether the service you have specified in SYSTEMD_SERVICE should be started automatically or not."

# set? /yocto-src/sources/meta-mender/meta-mender-core/recipes-mender/mender-client/mender-client.inc:17

# "enable"

# set /yocto-src/sources/poky/meta/classes/systemd.bbclass:9

# [_defaultval] "enable"

# set /yocto-dev/layers/meta-orro/recipes-mender/mender-client/mender-client_%.bbappend:1

# "disable"

# pre-expansion value:

# "disable"

SYSTEMD_AUTO_ENABLE="disable"

#

```

but at runtime, you can see that it’s the right build (built a few minutes ago) but mender still daemonized:

```auto
root@hermes:~# uname -a
Linux hermes 5.4.24-2.1.0+gbabac008e5cf #1 SMP PREEMPT Thu May 27 15:34:35 UTC 2021 armv7l armv7l armv7l GNU/Linux
root@hermes:~# ps |grep mender
  412 root 873m S /usr/bin/mender daemon
  413 root 852m S /usr/bin/mender-connect daemon
 2667 root 2248 S grep mender

```

---

_[View the full topic](https://hub.mender.io/t/error-disabling-systemd/3685)._
