|
From: Mirron R. <mi...@no...> - 2012-08-02 10:34:50
|
Hi. Just to share our solution to this problem. We need to upgrade wrapper on various OSes and do it via shell script that stops service copies files and starts the service. Indeed, restarting the service usually requires additional permissions, and there are cases when upgrade does not complete and needs manual intervention (i.e. to start the upgraded service). It worth a notion that we evaluated the possibility of having additional "upgrader" service, which will do all the work. The thing is that if the original service has the needed credentials, then the procedure described above will work anyway. But if the customer does not want to provide needed credentials, then upgrader service will not work also. It seems that if wrapper had a possibility to replace its files, it would work best way. The wrapper process should be able to replace files it has opened and then restart. *Mirron Rozanov **R&D* | *Nolio* *C*:972-52-8703899 *O*:972-9-9597305 *E:*:mi...@no... Find out more about Nolio: Website <http://www.noliosoft.com/> | Twitter<http://twitter.com/#!/noliosoft> | Youtube <http://www.youtube.com/user/NolioSoft> | LinkedIn<http://www.linkedin.com/groups/Application-Release-Management-Automation-1963650?mostPopular=&gid=1963650> On Thu, Aug 2, 2012 at 11:55 AM, Leif Mortenson < lei...@ta...> wrote: > Lars, > Windows unfortunately does not allow this directly as all open files are > locked. As long as the Wrapper.exe is running you will not be able to > update it. This will be a problem with all of the jar and DLL files as > well. > > The solution is to actually stop the Wrapper and run another process to do > the update. Then once the wrapper and your application have been updated, > you will want to restart the service. > > If you are running on the desktop, this will be fairly easy. But if > running as a service, you will need a way to do this in the background > using a process that has all of the required permissions to 1) replace the > files, and 2) to stop and start the service. The later will need to be an > elevated account. > > We will discuss options here as well. > > Cheers, > Leif > > > On Thu, Aug 2, 2012 at 5:02 PM, Lars Schnoor <Lar...@if...> wrote: > >> Hi >> >> I have made a service that uses the service wrapper. I need to update >> the service from time to time and for this I implemented a file transfer >> method. This works fine, I copy the files over the network to the >> destination and restart the computer. The only problem is that the >> wrapper.exe and wrapper.dll are in use and can not be overwritten. So >> updating my service does not include wrapper.exe and wrapper.dll. I >> would like to update all files including the two, is there a way to do >> this? Can I shutdown wrapper.exe and have my service continue to run? >> Thanks in advance! >> >> Lars >> >> > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |