[Mongrel] Mongrel as Windows service with normal privileges
luislavena at gmail.com
Thu Jun 5 06:10:10 EDT 2008
On Thu, Jun 5, 2008 at 10:11 AM, Ingmar Stieger <ml at stiegerhs.de> wrote:
> Luis Lavena wrote:
>> 32bits or x64 editions?
> Windows 2003 32bit.
>> In any case, serviceFB.log and mongrel.log and mongrel_service.log
>> should be stored into ruby/bin folder since was not possible by the
>> service point to the directory of the service.
> Thanks for the hint of using mongrel_service 0.3.3. I get these log files
> _initialize() constructor
> _initialize() constructor done
> ServiceProcess(new_name) done
> ServiceHost() done
> _add_to_references() done
> ServiceHost.Add() done
> CurrentPID: 5108
> ParentPID: 512
> Error with OpenProcess
> GetLastError: 0The operation completed successfully.
> Parent Name:
> ServiceController.RunMode() done
> ServiceHost() destructor
> ServiceHost() destructor done
> ServiceProcess() destructor
> ServiceProcess() destructor done
> _terminate() destructor
> _terminate() destructor done
> # Logfile created on 05.06.2008 09:51:06
> native/mongrel_service.bas:44, mongrel_service.singlemongrel.constructor:
> redirecting to: c:\ruby\bin\mongrel.log
> Not very helpful - OpenProcess fails with no apparent error.
Because it couldn't get parent process name.
>> I suggest you also try the psexec tool from Sysinternals and also
>> runas program (builtin in Windows) to get more detail information.
> Could you please explain what you want me to do ? I think I have ran
> everything I can using psexec and as the actual service user (explained in
> my initial post). If there is something else, I will happily run it :). On
> the other hand, since it works using these two methods, no error message
> will appear. Only the service itself can not be started.
On this ticket:
You can use PsExec tool  to simulate another user and remove
administrative privileges for testing:
You can search the mailing list and other tickets that explain how to
perform it (was discussed several times).
Can you provide the 'sc queryex' and 'sc qc' for your service and
pastie it here?
Human beings, who are almost unique in having the ability to learn from
the experience of others, are also remarkable for their apparent
disinclination to do so.
More information about the Mongrel-users