|
From: Hubert F. <hub...@ab...> - 2007-07-22 20:45:30
|
Before playing with user accounts, did you try the configuration on the following link? http://wrapper.tanukisoftware.org/doc/english/props-example-config.html Follow the advise and replace the necessary items. Keep in mind, the all directories are relative to the location of wrapper.exe. Your service will then run with localsystem account, the account a service should use, if possible. If this works, try to modify the config until it fits your needs. Read the wrapper docs to check the difference between a service running with localSystem account and a service running with a regular user account. hth Hubert >>> John Chandler <jm...@mu...> 20.07.2007 18:02 >>> Thanks, I hadn't added the "part of operating system" right. Since this machine is behind a firewall, on a private network, I added "Everyone" *and* several other users individually. Unfortunately, "Start" still fails. When you ask which account I use, I just use my normal login account to do the Start. Is there something else I should be doing? Is there something in the conf file that sets an account (I don't see anything like this)? On the question of what the service does this is a test service, and it doesn't do much -- it checks the last-modified time of a file and *may* invoke COMMAND to do a copy -- but when started as a service, it doesn't even appear to be able to write an entry in its log. If I attempt to add the service again, not using the install script, just "wrapper.exe -i <conf-file>", with "c:\" as the working directory, I do get a log entry about the service already being installed. -jmc Hubert Felber writes: > What account do you use for the service to run? > Does it run with "localSystem" account? If not, then .... > > Start the Local Security Settings console from the Administrative Tools group. > 2. Navigate to User Rights Assignments under Local Policies. > 3. Verify that the Service account has explicitly been given the following rights: > * Log on as a service > * Act as part of the operating system > > Depending on what your service does it might be necessary to assign more rights. > > > > >>> John Chandler <jm...@mu...> 19.07.2007 22:08 >>> > On Windows XP, I've configured a wrapper.conf file such that I can > start my app from a command window and it runs with no problem. I run > the install script, and the app appears to have been installed as a > service. It's configured to start up automatically, and no complaints > appear anywhere, until I try to Start this service. Then I get the > message, > > "Could not start the <MyApp> service on Local Computer./ Error 5: > Access is denied." > > Essentially the same message appears when I use "net start". If I > look at the Properties of the service, and copy the command to a > Command window, the expected thing happens if I leave the "-s" in > place, but if I change to a "-t" I again get "Access is denied" but > this comes from the Wrapper logger. If I change the flag to "-c", > everything appears to work fine. > > I don't know how to get either the Wrapper or Windows (which is where > I suspect the problem lies, but I can't be sure) to be any more > expansive as to what resource I'm being denied access to. Does anyone > have any clues or suggestions? > > Thanks. > > -jmc > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |