-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocserv_start.bat
More file actions
27 lines (22 loc) · 1009 Bytes
/
procserv_start.bat
File metadata and controls
27 lines (22 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@echo off
setlocal
set CYGWIN=disable_pcon
set MYDIRIOCLOG=%~dp0
call %MYDIRIOCLOG%..\..\..\config_env_base.bat
REM Set Logging directory
IF "%ICPVARDIR%"=="" (
set ICPVARDIR=C:/Instrument/Var
)
set IOCLOGROOT=%ICPVARDIR%/logs/ioc
for /F "usebackq" %%I in (`%ICPCYGBIN%\cygpath %IOCLOGROOT%`) do SET IOCCYGLOGROOT=%%I
REM Set config
copy %MYDIRIOCLOG%\logserver_config.ini %MYDIRIOCLOG%\LogServer\target\logserver_config.ini
REM *****************************************
REM * LOG SERVER
REM *****************************************
set STARTCMD=%ComSpec% /c %MYDIRIOCLOG%start-log-server.bat
set CONSOLEPORT=9002
set LOG_FILE=%IOCCYGLOGROOT%/IOCLOG-%%Y%%m%%d.log
@echo %DATE% %TIME% Starting IOC Log Server on 127.0.0.1 (console port %CONSOLEPORT%)
@echo %DATE% %TIME% * log file - %LOG_FILE%
%ICPCYGBIN%\procServ.exe --logstamp --logfile="%LOG_FILE%" --timefmt="%%c" --restrict --ignore="^D^C" --name=IOCLOG --pidfile="/cygdrive/c/instrument/var/run/EPICS_IOCLOG.pid" %CONSOLEPORT% %STARTCMD%