We need more information.
It works for a little bit and then the NX service will stop.
It happens in every system’s reboot? NX service – you mean NXservices or nxserver?
If I try to — restart the server, it gives an error that the file isn’t found, even though “ls” shows it.
You have tried restart from GUI or via terminal? Can you do screenshot of the error and attach it here?
Please enable debug, restart nxserver (sudo /usr/NX/bin/nxserver --restart
), reproduce the problem and send all logs from server and client side to forum[at]nomachine[dot]com or attach them here (size is restricted). Instructions about collecting logs you can find there: https://www.nomachine.com/DT04M00076