M
M
Maxim Barulin2016-09-15 16:39:31
Erlang
Maxim Barulin, 2016-09-15 16:39:31

[Erlang] How to properly start the server from the scheduler?

Hello!
There is a computer with win server 2008r2, there is a socket server on erlang. It is necessary that when starting the server, which sometimes crashes / reboots, erlang starts. But such a simple task, in general, turned out to be unrealizable. Tried in two ways. The first through cygwin and the scheduler - set the script to run

C:\cygwin\bin\dash.exe -l -c "/www/hawk/server_start.sh"

with and without a working directory. Processes start but can't connect to them.
I tried to create two actions in the task with the launch of the client and the server - the same result.
So how do you force the server to start?
PS the daw about the maximum rights in the scheduler costs.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
res2001, 2016-09-15
@res2001

Are the ports open?
Start your process not from LocalSystem, but from a normal user. You can create a special user for him, assign him the necessary rights.

S
Sergey, 2016-09-15
@begemot_sun

Why cygwin? Erlang works great on Windows too.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question