[erlang-questions] erlsrv

Wes James comptekki@REDACTED
Fri Jun 16 22:17:40 CEST 2017

So when erlang is installed as a windows service and I'm logged in and do a
restart of the service with a username/password assigned to that service,
it sees home as c:\users\username.  When the service starts on system boot
up, it is seeing home as c:\windows.  In the past I've just run it as the
system account and it was always c:\windows.  Somehow erlang running as a
service sees home differently, depending on the situation.


On Fri, Jun 16, 2017 at 12:30 AM, Dan Gudmundsson <dangud@REDACTED> wrote:

> The cookie file is always read/written from 'home' taken from
> init:get_arguments().
> Home is HOMEDRIVE/HOMEPATH or if not set, whatever GetWindowsDirectory()
> returns.
> On Fri, Jun 16, 2017 at 6:36 AM Wes James <comptekki@REDACTED> wrote:
>> I found if I set erlsrv to run with a particular username/password and
>> start it, it looks for .erlang.cookie in c:\users\username.  When I restart
>> the system, it looks for .erlang.cookie in c:\windows.  This is on windows
>> 10.
>> -wes
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170616/b1bbcf63/attachment.htm>

More information about the erlang-questions mailing list