I spoke too soon. It seems to work, as in: it doesn't give an error, but the daemon isn't active.
I wrote multiple servers in Lazarus, but this is the first time that I try to make it into an official daemon. So the code that listens to the socket and spawns the worker threads, should work.
The wiki is sparse with information, so I followed the
pdf. But that didn't work, either.
I have no idea how I can debug it. I think I'll have to go back to a simple console application.
Edit: I'll try and change the template code to match the pdf.
Edit2:
./r2configserver --run
Exception at 000000000042B80A: EStreamError:
Failed to initialize component class "TMyMapper": No streaming method available.
TMyMapper is the TDaemonMapper.
Edit3: I cannot get it to work, so I redid it as a console application. That works flawless.