Failed with result 'resources'

Bonjour,

Je ne parviens pas à créer le service Rhasspy sur Debian afin qu’il se lance seul.

J’ai bien autorisé le dossier de profil fr en 777 comme indiqué dans un autre post.
J’ai pu créer ce fichier de config :

[Unit]
Description=Rhasspy Service

[Service]
Type=simple
User=root
Group=root
EnvironmentFile=/usr/sbin
ExecStart=rhasspy --profile fr

[Install]
WantedBy=multi-user.target

Mais j’ai cette erreur dont je ne m’en sors pas :

Quelqu’un aurait-il une idée ? Solution ?

I wonder if the error message “Failed to load environment files: is a directory” means that the line in yout config

EnvironmentFile=/usr/sbin
should point to a filename rather than a directory ?

Sorry but the rhasspy.service for my Raspberry Pi Zero (Raspberry Pi OS version of Debian) does not contain an EnvironmentFile entry. If it helps, my file is:

[Unit]
Description=Rhasspy Autostart
After=network-online.target
 
[Service]
Type=simple
User=pi
WorkingDirectory=/home/pi
ExecStart=/bin/bash -lc '/usr/bin/rhasspy --profile en 2>&1 | cat'
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=rhasspy
Restart=on-failure
RestartSec=30
 
[Install]
WantedBy=multi-user.target

@donburch is correct: if you use EnvironmentFile, it should be a file with environment variables.

It’s perfect ! Thanks very much !