# Disable mender-client by default

**URL:** https://hub.mender.io/t/disable-mender-client-by-default/3426
**Category:** Yocto Project
**Created:** [March 24, 2021, 10:20am UTC](https://hub.mender.io/t/disable-mender-client-by-default/3426 "2021-03-24T10:20:36Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)
#### Post date: [March 24, 2021, 10:20am UTC](https://hub.mender.io/t/disable-mender-client-by-default/3426/1 "2021-03-24T10:20:36Z")

</div>

Hi,

I’m trying to set mender-client systemd service disabled by default. So added : `SYSTEMD_AUTO_ENABLE = "disable"` to mender-client\_%.bbappend file. Problem is that mender-client service is started despite of that (it’s not present in /etc/systemd/system/muti-user.want and  
`cat /lib/systemd/system-preset/98-mender-client.preset`  
shows:  
`disable mender-client.service`

Any ideas? Thanks.

---

<div class="post-metadata">

### Author: ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)
#### Post date: [March 24, 2021, 1:11pm UTC](https://hub.mender.io/t/disable-mender-client-by-default/3426/2 "2021-03-24T13:11:58Z")

</div>

Hi @MarekBelisko

Did you dump the bitbake environment and verify that the AUTO\_ENABLE value is set correctly? It’s possible that there is a layer of higher priority that is turning it back on.

Drew

---

<div class="post-metadata">

### Author: ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)
#### Post date: [March 25, 2021, 11:27am UTC](https://hub.mender.io/t/disable-mender-client-by-default/3426/3 "2021-03-25T11:27:33Z")

</div>

> [@drewmoseley](#):
>
> AUTO\_ENABLE

Yes it was disabled : `SYSTEMD_AUTO_ENABLE="disable"` and also it’s reflected by `/lib/systemd/system-preset/98-mender-client.preset`

---

<div class="post-metadata">

### Author: ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)
#### Post date: [March 25, 2021, 12:39pm UTC](https://hub.mender.io/t/disable-mender-client-by-default/3426/4 "2021-03-25T12:39:09Z")

</div>

This is odd. @kacf do you have any idea on this?  
Drew

---

<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: [March 29, 2021, 7:16am UTC](https://hub.mender.io/t/disable-mender-client-by-default/3426/5 "2021-03-29T07:16:27Z")

</div>

Mender-connect is also started by default, and depends on mender-client, this could be the reason.

---

<div class="post-metadata">

### Author: ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)
#### Post date: [March 29, 2021, 5:12pm UTC](https://hub.mender.io/t/disable-mender-client-by-default/3426/6 "2021-03-29T17:12:40Z")

</div>

@kacf yes you’re right. Thanks for hint. 👍
