Startup and Shutdown
This page shows the behaviour expected for IBEX or starting and stopping. There are two different modes in which IBEX can run:
Full: As the instrument control, which archiving, configurations, logging etc
MiniInst: As a provider of IOCs which are used by SECI
In addition to this it can be on an instrument but switched off because SECI is running.
The system will provide IOCs for SECI (2) if a file called startup.txt
is in the ICP Config Root. ICP Config Root defaults to C:/Instrument/Settings/config/<COMPUTERNAME>/configurations
but may be overridden in icpconfighost.txt
in C:/Instrument/Settings/config
.
On a system reboot IBEX should start but only if it was running when the machine was shut down. Whether IBEX was running is recorded by the contents of a file (
Start behaviour:
If IBEX is running and IBEX is requested to start then IBEX should restart itself (this should have minimal data loss).
If SECI is running and IBEX is requested to start then IBEX should kill it on start and remove the file which claims it is the only running control software.
If full IBEX is running and SECI starts it will kill IBEX using the stop IBEX server script - this ticket #1951.
Process on Start (not definitive see actual scripts)
There is a startup script ibex_system_boot.bat
, this can be installed as a startup program, if IBEX server was previously started it restarts it otherwise it does nothing. It is detected by the presence of c:\instrument\var\tmp\ibex_running.txt
.
Start is initiated from C:\Instrument\Apps\EPICS\start_ibex_server.bat
. It:
Stop the ibex server (see below)
Put start file in place #1950
Runs ca repeater bat
Kills old carepeater tasks
Starts a new task in procserv
Runs conserver bat
Stops conserver
Starts a new conserver
If startup.txt exists in config runs start_ibex_server_mini else runs start_ibex_server_full.bat
[full only] update iocs db
[full only] start ioc log server (if logs cannot be loaded, you may not have permission to view the files, this can happen if you accidentally started the server in admin mode in the past. This can be fixed by either changing the folder’s permissions or deleting its configs)
[full only] start the alarm server
start the gateways
start the procserver for the iocs (call
iocstartup\procserv.bat
)starts proc server control (PSCTRL IOC)
Reload conserver
[full only] start the block server
[full only] start the database server
[full only] start the script server (if not on an instrument)
[mini only] Start and enable auto start on IOC in startup.txt list
Process on Stop (not definitive see actual scripts)
Initiated from start or C:\Instrument\Apps\EPICS\stop_ibex_server.bat
. It stops the following
Remove start file #1950
IOCs in
startup.txt
Conserver
IOC Log Server
Alarm server
Gateway
Blockserver
Database Server
Script Server
IOCs with PID files
All procserv processes
All exes in ioc startups
Gateway exe
Conserver.exe
Console.exe
PSCTRL
Archive engine
MK3 Chopper
[instrument only]
css.exe
[instrument only]
javaw
[instrument only]
java
[instrument only]
pythonw
[instrument only]
ibex-client
[without startup.txt]
python
[without startup.txt]
SeciUserInterface
[without startup.txt]
SeciStartup
[without startup.txt]
LabView
[without startup.txt]
mkscript3
[without startup.txt]
muonscript
[without startup.txt]
PlotScan.exe
[without startup.txt]
vs7jit.exe
[without startup.txt]
mari_script.exe
[without startup.txt]
tkgenie32.exe
[without startup.txt]
dllhost.exe
[without startup.txt]
isisdatasvr.exe
[without startup.txt]
isisicp.exe
[without startup.txt]
cwdss.exe
camonitor
caRepeater
Ports
ProcServ Ports
These items have hard-coded ports for ProcServ:
Name |
Port |
---|---|
Blockserver |
9006 |
Database server |
9009 |
JSON Bourne server |
9012 |
Everything else (IOCs, Block Cache, archivers etc.) are assigned ports as part of the build process starting from 20000.
Other Ports
Name |
Port |
---|---|
Instrument Archiver web port |
4812 |
Block Archiver web port |
4813 |
JSON Bourne web port |
60000 |
Blockserver web port |
8008 |
Script Server (ActiveMQ STOMP port) |
39991 |
JMS (ActiveMQ openwire port) |
39990 |