|
From: Leif M. <le...@ta...> - 2009-11-04 14:36:17
|
Lars, We will look into it. One problem I see however is the fact that changing service configurations requires Administrator level privileges. When the Wrapper is running as a service, it is running as the SYSTEM user which does not. In Windows Vista, 2008 and 7, this requires an Elevated Administrator account, we have already been doing some research on how these accounts work for other purposes. It may be necessary to actually run the service as an elevated user. Cheers, Leif On Wed, Nov 4, 2009 at 11:23 PM, Lars Schnoor <Lar...@if...> wrote: > Hi Leif > You mean on Windows XP from Control Panel->Administrative Tools->Services? > > I have a control panel for my application that allows the user to set some > parameters and there I would like to allow the user to set whether the > service should start automatically on system startup or if he/she has to > start the service manually. When the user saves the settings I restart the > service using WrapperManager.restart(), so it would be nice if the change > would take affect at that point. I mean the service should restart, but if > the user afterwards restarts the computer the change should have taken > affect. > > I have no specific timing in mind, I just think it would be nice to be able > to do it. Since my control panel only comes up when the service is running > it would be sufficient to be able to do it while the service is running, but > being able to do it when the service is simply installed would probably not > hurt. > > Lars > > Leif Mortenson wrote: > > Lars, > Not currently, no. You can do so from within the Service Control > Panel manually however. Does that work for you? > > If not, what is the timing that you would like to see it changed? > While the service is running, or simply installed. > > Cheers, > Leif > > On Wed, Nov 4, 2009 at 8:44 PM, Lars Schnoor <Lar...@if...> wrote: > > > Hi > Is there a way to control the wrapper.ntservice.starttype parameter for > a service that is installed? > When I change the value for the wrapper.ntservice.starttype in > wrapper.conf it does not take affect before uninstalling the service and > then installing it again. I would like to be able to switch between > AUTO_START and DEMAND_START without reinstalling the service. I am using > version 3.2.3. > Thanks in advance! > > Lars |