I am trying to get mycroft to start on Raspberry Pi OS (not pycroft) as a service as defined in the documentation. Here is the sytsemd script:
$ cat /etc/systemd/system/mycroft.service [Unit] Description=Mycroft AI After=pulseaudio.service network-online.target Wants=network-online.target [Service] User=pi WorkingDirectory=/home/pi/ # ExecStartPre=/bin/sleep 30 ExecStart=/home/pi/mycroft-core/bin/mycroft-start all ExecStop=/home/pi/mycroft-core/bin/mycroft-stop Type=simple Restart=no [Install] WantedBy=multi-user.target
Before boot, I look at the /tmp/mycroft/ directory and see it is owned by pi:
$ ls -ld /tmp/mycroft drwxr-xr-x 3 pi pi 4096 Jun 5 13:44 /tmp/mycroft
I reboot the system:
$ reboot ...
The Raspi goes down and comes back up and mycroft should be running, but it is not. I login and see that the ownership of /tmp/mycroft/ has been changed to root:
$ ls -ld /tmp/mycroft drwxr-xr-x 2 root root 4096 Jun 5 14:38 /tmp/mycroft $ grep Errno /var/log/mycroft/bus.log PermissionError: [Errno 13] Permission denied: '/tmp/mycroft/service.pid'
It seems the startup scripts cannot create the file with the process ID. How is the ownership of /tmp/mycroft/ being changed from pi to root?
Any help will be appreciated.