Re: [topshelf-discuss] xcopy to services directories not working once service is running

91 views
Skip to first unread message

Dru Sellers

unread,
Jun 11, 2012, 4:42:48 PM6/11/12
to topshelf...@googlegroups.com
So, first my apologies - this is not the most robust code I have ever written, and the shelving stuff often has these kinds of issues. I am currently going through TS v3 to try and fix exactly these kinds of issues. That said, your expectations are spot on, I just fail to meet them.

Right now most of us don't use shelving. :(

If you wanted to take a look at the code I would happily help point in the right directions.

-d

On Mon, Jun 11, 2012 at 3:12 PM, av <avi...@gmail.com> wrote:
Hi

Maybe I'm missing something.

I installed topshelf, shelved a service i wrote based on examples. Everything is working ok, and my shelved service is running.

I was under impression that when xcopy updated dll of the code my service needs to run that topshelf automagically would detect that and restart the service.

However, when I copy the dll, i get the "action can't be completed because folder or file is open in another program. close the folder/file and try again"

If i stop my shelved service then I can copy ok but then have to manually start it back up again.

Am I missing something or is that how it should be working.

What are the best ways of updating services that are shelved? What do you guys do?

Thanks

Mario Pareja

unread,
Jun 11, 2012, 5:40:46 PM6/11/12
to topshelf...@googlegroups.com
While shelving isn't quite there yet, the old-style single service mode works great and has a smaller memory footprint. It makes installing and removing services pretty easy so you don't lose very much by not using shelving...

av

unread,
Jun 12, 2012, 11:11:26 AM6/12/12
to topshelf...@googlegroups.com
Hi Dru and Mario,

Please, don't get me wrong, it's working very nicely and install process was a breeze. I just thought it was already working from reading the  topshelf project site.

So how are you using topshelf? Specifically how do you manage updates to services? Any resources/examples you could point me to?

Thanks


On Monday, June 11, 2012 5:40:46 PM UTC-4, Mario Pareja wrote:
While shelving isn't quite there yet, the old-style single service mode works great and has a smaller memory footprint. It makes installing and removing services pretty easy so you don't lose very much by not using shelving...

On 2012-06-11, at 4:42 PM, Dru Sellers <d...@drusellers.com> wrote:

So, first my apologies - this is not the most robust code I have ever written, and the shelving stuff often has these kinds of issues. I am currently going through TS v3 to try and fix exactly these kinds of issues. That said, your expectations are spot on, I just fail to meet them.

Right now most of us don't use shelving. :(

If you wanted to take a look at the code I would happily help point in the right directions.

-d

Travis Smith

unread,
Jun 12, 2012, 12:10:05 PM6/12/12
to topshelf...@googlegroups.com, topshelf...@googlegroups.com
So blame me for it being incomplete. I wanted it to replace our nant scripts plus WMI calls that did all the work. WMI is awesome (?) so it would take like 30 minutes to deploy, all but 3 was processing our 20ish services. 

It sorta worked for us, then I left that job. Since it's non trivial to test (as it stands), I haven't made much further progress. We have stolen some of the work and used it elsewhere. 

I think it's a matter of one us needing to dog food it again, then we can get it working right. Mostly been lower on priority otherwise. 

And we should adjust the website to be more clear about it. 

-Travis
Reply all
Reply to author
Forward
0 new messages