Comment vraiment désactiver yunohost-api?

Bonsoir,
Pour des raisons de sécurité, il est conseillé de désactiver yunohost-api
https://yunohost.org/#/security_fr

Effectivement il suffit de fournir le mot de passe pour avoir droit de vie ou de mort sur l’ensemble du système.
(dommage d’ailleurs que cette partie si sensible ne puisse bénéficier d’une plus grande sécurisation (certificat par exemple)

Mon problème est que même désactivé yunohost-api se relance toujours au démarrage de la machine
Pourtant dans la rubrique service de ladite api il est indiqué
(url /yunohost/admin/#/services/yunohost-api)

Services
yunohost-api

Statut
       Lancer au démarrage :             
        Désactivé
        Statut :             
        En cours d'execution

Bug ?

Comment vraiment désactiver yunohost-api?

There is a distinction between disable and stop.

To stop definitely a service you should do that:

yunohost service stop yunohost-api
yunohost service disable yunohost-api

You can do the same with the web admin (disable first and stop next). Don’t be surpirze if the web admin is blocked just after clicking on the button.

If after those actions, the service is rerun after a reboot, you should create a bug report.

Hello ljf,
thanks for your help, but I confirm, there is a bug
"yunohost service stop yunohost-api" actually stops the service
but
"yunohost service disable yunohost-api" does not disable the service, after rebooting yunohost-api is definitely back.

bug created
https://dev.yunohost.org/issues/431

une solution de contournement, créer un cron au reboot qui stoppe le service

sudo crontab -e
ajouter la ligne suivante au fichier crontab
@reboot /usr/sbin/service yunohost-api stop
Sauver, rebooter
et au reboot l’API yunohost est effectivement arrêtée.