[rabbitmq-discuss] WinXP Embedded - Interactive Server works, Service does not.

Daniel Lewis DanielLewis at Ticketmaster.com
Mon Nov 5 22:12:06 GMT 2012


Matthias,

> On 05/11/12 20:24, Daniel Lewis wrote:
> > My suspicion is that only the output redirect is failing, but the
> > command is succeeding.
> 
> Why would that be?
> 
[Daniel Lewis] 

Well for instance, the lines below generate the errormessage:

"!ERLANG_SERVICE_MANAGER_PATH!\erlsrv" list !RABBITMQ_SERVICENAME! 2>NUL 1>NUL
if errorlevel 1 (
    "!ERLANG_SERVICE_MANAGER_PATH!\erlsrv" add !RABBITMQ_SERVICENAME!
) else (
    echo !RABBITMQ_SERVICENAME! service is already present - only updating service parameters
)

but the condition still appears to be correct, because if I "install" twice in a row, it does the install process the first time, but it gives me the "service is already present" message the second time.   I do get the "system cannot find the file specified" message in both cases.



> >> I'd like to see the *whole* 'set' (not 'add') command.
> >>

[Daniel Lewis] 

Sorry - here is the set command:

C:\PROGRA~1\Ticketmaster\TMDS\rabbitmq\sbin>"!ERLANG_SERVICE_MANAGER_PATH!\erlsrv" set !RABBITMQ_SERVICENAME! -machine "!ERLANG_SERVICE_MANAGER_PATH!\erl.exe" -env ERL_CRASH_DUMP="!RABBITMQ_BASE_UNIX!/erl_crash.dump" -workdir "!RABBITMQ_BASE!" -stopaction "rabbit:stop_and_halt()." -sname !RABBITMQ_NODENAME! !CONSOLE_FLAG! -args "!ERLANG_SERVICE_ARGUMENTS!"  1>NUL

which expands to:

"c:\progra~1\ticketmaster\tmds\erlang\erts-5.9.2\bin\erlsrv" set RabbitMQ -machine "c:\progra~1\ticketmaster\tmds\erlang\erts-5.9.2\bin\erl.exe" -env ERL_CRASH_DUMP="C:/Documents and Settings/Administrator/Application Data/RabbitMQ/erl_crash.dump" -workdir "C:\Documents and Settings\Administrator\Application Data\RabbitMQ" -stopaction "rabbit:stop_and_halt()." -sname rabbit at DANIEL-WYSE  -args "  -boot \"C:/Documents and Settings/Administrator/Application Data/RabbitMQ/db/rabbit at DANIEL-WYSE-plugins-expand\\rabbit\"  -s rabbit +W w +A30 -kernel inet_default_listen_options \"[{nodelay,true}]\" -kernel inet_default_connect_options \"[{nodelay,true}]\"  -kernel error_logger {file,\\\"\"C:/Documents and Settings/Administrator/Application Data/RabbitMQ/log/rabbit at DANIEL-WYSE.log\"\\\"}  -sasl errlog_type error -sasl sasl_error_logger {file,\\\"\"C:/Documents and Settings/Administrator/Application Data/RabbitMQ/log/rabbit at DANIEL-WYSE-sasl.log\"\\\"} -os_mon start_cpu_sup true -os_mon start_disksup false -os_mon start_memsup false -mnesia dir \\\"\"C:/Documents and Settings/Administrator/Application Data/RabbitMQ/db/rabbit at DANIEL-WYSE-mnesia\"\\\"  install"

When I do a rabbitmq-service.bat list, it shows me this:

"c:\progra~1\ticketmaster\tmds\erlang\erts-5.9.2\bin\erlsrv" list RabbitMQ
Service name: RabbitMQ
StopAction:
OnFail: ignore
Machine: c:\progra~1\ticketmaster\tmds\erlang\erts-5.9.2\bin\erl.exe
WorkDir:
SName: RabbitMQ
Priority: default
DebugType: none
Args:
InternalServiceName: RabbitMQ01cdbba1e5d12470
Comment:
Env:


Regards,
Daniel


More information about the rabbitmq-discuss mailing list