nthallen / monarch

Monarch Data Acquisition System
0 stars 1 forks source link

cmd srvr will fail during tma compilation if service is not installed and running under Linux #196

Open nthallen opened 1 year ago

nthallen commented 1 year ago

The command server needs to create a socket under /var/run/monarch, but that directory is created by the service and deleted if the service is stopped. This is a good thing in general, but this failure is a bit mysterious.

I think the simple solution is to add a check in the Makefile that /var/run/monarch exists.

nthallen commented 7 months ago

This should be folded into the issue of supporting multiple services (i.e. multiple instruments on a single computer). That requires some method of pointing all programs to the appropriate run directory. In this case, it could be an adhoc directory created just for the build.