|
From: Christian <chr...@ta...> - 2011-05-30 10:27:51
|
Lars, this is most likely because you are running the commands from an non-privileged environment. Starting/stopping a service requires Admin privileges. Starting with windows Vista, it's actually not enough anymore to be an admin and run those commands, you actually also need to run them explicitly in an elevated context, i.e. "As administrator" via UAC[1]. In 3.5.7 I have added direct support to use UAC directly from within the Wrapper: * Implemented a way to install, remove, start, stop, etc., the Wrapper as a Windows service from a non-elevated (UAC) console. The Wrapper is elevated transparently using a child process. This is needed starting with Windows Vista and 2008 for smooth interaction with the Windows Service Manager. Please let me know if you have any further questions Best Regards, Christian [1] http://en.wikipedia.org/wiki/User_Account_Control -----Original Message----- From: Lars Schnoor <Lar...@if...> Reply-to: Lar...@if..., wra...@li... To: wra...@li... Subject: Re: [Wrapper-user] Wrapper question Date: Mon, 30 May 2011 11:15:18 +0200 Hi Christian I have tried the "sc", "net" and "wrapper -t" method and I always get an access denied message, I am running Windows 7. Lars On 30-05-2011 10:40, Christian Mueller wrote: > Lars, > > this is currently possible with the -u option of the Wrapper binary. > If you run the wrapper conf file with the -u parameter the wrapper > will update the properties of your service without uninstalling and > reinstalling it. However, if the application was running as a service > at the time you are trying to update the service, the Wrapper will > first stop the server. > For instance: > bin\wrapper -u ..\conf\wrapper.conf > > There are many ways of starting the service, apart from the services dialog: > > - directly through the Wrapper by running the Wrapper with the parameter "-t" > bin\wrapper -t ..\conf\wrapper.conf > - the Install-App.bat file (which will implicitly call the Wrapper > binary with "-t") > - the Windows command-line tool "sc", i.e. sc start [Service Name] > http://ss64.com/nt/sc.html > - the Windows command-line tool "net", i.e. net start [ServiceName] > http://ss64.com/nt/net_service.html > etc... > > please let me know if you have any further questions on this. > > Best Regards, > Christian > > On Mon, May 30, 2011 at 4:48 PM, Lars Schnoor<Lar...@if...> wrote: >> Hi >> >> Some time ago I asked if the wrapper.ntservice.starttype could be set >> and would have effect after the service is installed and I was told that >> it could be set but that it would not have effect, has this been >> changed/fixed? I would like to change the mode from AUTO_START to >> DEMAND_START or reverse without uninstalling and installing the service. >> I would also like to ask if there is a way to start the service after >> installing it without restarting the computer or manually going into the >> Services dialog and starting it that way? >> Thanks >> >> Lars >> >> ------------------------------------------------------------------------------ >> vRanger cuts backup time in half-while increasing security. >> With the market-leading solution for virtual backup and recovery, >> you get blazing-fast, flexible, and affordable data protection. >> Download your free trial now. >> http://p.sf.net/sfu/quest-d2dcopy1 >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |