So I got Xlink-Kai to load on start up how I wanted.
I rand the following commands:Code:
sudo loginctl enable-linger pi
As you're switching to running the service as root from a system directory that's not required but shouldn't do any harm.
copy, pasted, and saved the following into nano:Code:
sudo nano /etc/systemd/system/kaiengine.serviceCode:
[Unit]Description=XLink Kai EngineAfter=network-online.target[Service]User=rootGroup=rootType=simpleWorkingDirectory=/usr/binExecStart=/usr/bin/kaiengineRestart=always[Install]WantedBy=default.target
User and Group default to root so there is no need to specify them. You also shouldn't need to set the WorkingDIrectory to /usr/bin. If that is a requirement of kaiengine it would need to be done when started from the command line which I doubt is the case.
And if it is the case I'd class that as a bug that needs to be fixed.
then followed steps 3 through 9 here:
https://linuxtldr.com/create-systemd-service/
Not going to comment on that except to say that steps 8 and 9 undo steps 4 and 6.
Now for the second part of this, getting my web browser to launch on start up. Off to do some more reading and sorting. i will post my progress with this part once i either need help or achieve what I am after.
thank you for your time and help
You're welcome.
Statistics: Posted by thagrol — Tue Feb 10, 2026 12:51 am