Wednesday, February 23, 2011

How to make a service restart its self.

Did you know you can easly make a service re-start it’s self.
Its very simple, just make it EXIT with a value greater that 0.
Eg,

Environment.Exit(1);

Now, your service will restart its self.
 

1 comment:

  1. Wow that was unusual. I ϳust wгote аn vегy long
    comment but after I clicked submit my cоmmеnt ԁiԁn't appear. Grrrr... well I'm nоt writing all that ovеr again.

    Regardless, just wanted tο say fantastic blog!

    Ηere іs my websіte hemoroide

    ReplyDelete