Rhasspy as service with Debian installation

Hello,

no i use docker now

I ran into the same problem trying to run rhasspy as a service on my Raspberry Pi Zero.

I finally managed to get a proper configuration thanks to this thread which led me to this github issue with the solution.

Here is my file /lib/systemd/system/rhasspy.service

[Unit]
Description=Rhasspy Service
After=syslog.target network.target

[Service]
Type=simple
ExecStart=/bin/bash -c '/usr/bin/rhasspy --profile fr 2>&1 | cat'
RestartSec=1
Restart=on-failure
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=rhasspy

[Install]
WantedBy=multi-user.target

And while I’m there, here is a tutorial explaining how to use systemd to create a service.
Another problem I encountered is that I did not install mosquitto, but that is covered in the official documentation.

3 Likes