-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOC name inconsistencies with IOC manager #90
Comments
Oh this is annoying Letting the ioc manager set the ioc name seems reasonable. I'm trying to figure out why this isn't an issue for other IOCs but I'm coming up blank. Usually this gets set to the directory name under |
I think there's no way we can do the check, unless we shell out to an external script. There's no real control flow options in I put this in the PR: 184e609 |
Yes, I think giving the IOC manager control makes the most sense. |
There have been several cases to my knowledge of mismatched
$(IOC)
name compared to what IOC Manager has assigned as its ID.This is a big problem since:
This leads to confusion and potentially incorrect behavior in the end.
This is set here: https://github.com/pcdshub/IocManager/blob/fabc34c31e4fbb14c9d3b746474f42b3ef9e3688/startProc#L24
As part of the full process: https://confluence.slac.stanford.edu/display/PCDS/Detailed+Soft+IOC+boot+process#DetailedSoftIOCbootprocess-startProc
So we should be able to rely on $(IOC) being set for us externally. We could instead do:
epicsEnvSet("IOC", "$(IOC=iocname)")
to set a default in case it's being run without iocmanager (which can be useful in development/testing situations).
and
The text was updated successfully, but these errors were encountered: