# CLI command to ignore a specific service being down?

**URL:** https://forum.yunohost.org/t/cli-command-to-ignore-a-specific-service-being-down/26161
**Category:** Support
**Tags:** english
**Created:** [August 29, 2023, 3:26pm UTC](https://forum.yunohost.org/t/cli-command-to-ignore-a-specific-service-being-down/26161 "2023-08-29T15:26:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Zinkie](https://forum.yunohost.org/user_avatar/forum.yunohost.org/zinkie/32/345_2.png) [@Zinkie](https://forum.yunohost.org/u/Zinkie)
#### Post date: [August 29, 2023, 3:26pm UTC](https://forum.yunohost.org/t/cli-command-to-ignore-a-specific-service-being-down/26161/1 "2023-08-29T15:26:27Z")

</div>

Hi there,  
I want to turn off yunohost-api service as recommended in the security hardening section of the Yuno docs.

The trouble is that I get daily emails about yunohost-api being disabled. I want to still get an email if there’s another issue, but would just like to ignore these services being down. I managed to ignore other turned-off services from the web-ui. I can’t do this with yunohost-api obviously the web UI doesn’t work when it’s down! 🤪

**So what CLI command can I enter to get diagnosis to ignore yunohost-api being turned off?**

I’m guessing it’s something along the lines of yunohost diagnosis ignore services yunohost-api?

---

<div class="post-metadata">

### Author: ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)
#### Post date: [September 6, 2023, 11:16am UTC](https://forum.yunohost.org/t/cli-command-to-ignore-a-specific-service-being-down/26161/2 "2023-09-06T11:16:10Z")

</div>

> [@Zinkie](#):
>
> **to ignore yunohost-api being turned off?**
> 
> I’m guessing it’s something along the lines of yunohost diagnosis ignore services yunohost-api?

Sure thing, `yunohost --help` can give you more information on the proper syntax.

---

<div class="post-metadata">

### Author: ![crustyourmind](https://forum.yunohost.org/user_avatar/forum.yunohost.org/crustyourmind/32/2197_2.png) [@crustyourmind](https://forum.yunohost.org/u/crustyourmind)
#### Post date: [September 6, 2023, 11:51am UTC](https://forum.yunohost.org/t/cli-command-to-ignore-a-specific-service-being-down/26161/3 "2023-09-06T11:51:46Z")

</div>

```auto
yunohost diagnosis ignore [--filter filter] [--list]
Configure some diagnosis results to be ignored and therefore not considered as actual issues

```

?

---

<div class="post-metadata">

### Author: ![Zinkie](https://forum.yunohost.org/user_avatar/forum.yunohost.org/zinkie/32/345_2.png) [@Zinkie](https://forum.yunohost.org/u/Zinkie)
#### Post date: [September 9, 2023, 10:40pm UTC](https://forum.yunohost.org/t/cli-command-to-ignore-a-specific-service-being-down/26161/4 "2023-09-09T22:40:37Z")

</div>

OK, I figured it out. The command needed is:

`sudo yunohost diagnosis ignore --filter services service=yunohost-api`

Now to see if I can figure out how to add this to the documentation wiki security page, where it suggests turning off yunohost-api to harden Yunohost…

EDIT: OMG… I just found that someone else already added this exact command to the wiki and I didn’t notice. 🤦

---

<div class="post-metadata">

### Author: ![crustyourmind](https://forum.yunohost.org/user_avatar/forum.yunohost.org/crustyourmind/32/2197_2.png) [@crustyourmind](https://forum.yunohost.org/u/crustyourmind)
#### Post date: [September 10, 2023, 8:33am UTC](https://forum.yunohost.org/t/cli-command-to-ignore-a-specific-service-being-down/26161/5 "2023-09-10T08:33:08Z")

</div>

All the yunohost commands in a pdf format

> **[yunohost.pdf](https://crust.ovh/site/yunohost.pdf)**
>
> 83.88 KB

(cf thread [How to Manage YunoHost from CommandLine? - #4 by tinder](https://forum.yunohost.org/t/how-to-manage-yunohost-from-commandline/26192/4) )

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [October 10, 2023, 8:33am UTC](https://forum.yunohost.org/t/cli-command-to-ignore-a-specific-service-being-down/26161/6 "2023-10-10T08:33:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
