Hello,

You can create a new service with any binary you want to run. This will not 
answer service control commands, so it will fail to respond, but the binary is 
started and can do your testing. You just won't get desktop access. (This is 
similar to what psexec does).

I would suspect context specific things like PATH or generally environment, 
registry, possibly certificates and of course access to UNC or mounted 
directories (and desktop session) be affected by local system.

Gruss
Bernd
--
http://bernd.eckenfels.net
________________________________
Von: Adam Retter <adam.ret...@googlemail.com.INVALID>
Gesendet: Tuesday, May 12, 2020 4:15:32 PM
An: Commons Users List <user@commons.apache.org>
Betreff: Re: [daemon] Procrun UnsatisfiedLinkError with JNI project

Thanks for your response Mark, further comments inline below -

> It shouldn't.
>
> Maybe a permissions problem? Although running as LocalService is should
> be fine.

So I am using the `--ServiceUser=LocalSystem` flag - to run under the
LocalSystem account. (i.e. NOT `NT Authority\Local Service`).

> I guess check the obvious. Does the dll exist where the app is looking?

It does exist yes. I have a working theory in fact that it loads the
DLL, but it is the dependencies of that DLL (which will be various
Windows system DLL's) that it can't load.

> Can LocalSystem read that file etc.

Do you know - Is there someway that I can directly execute code under
"LocalSystem" to see if I can reproduce the problem outside of
Procrun?




--
Adam Retter

skype: adam.retter
tweet: adamretter
http://www.adamretter.org.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org

Reply via email to