Sorry, I thought it obvious.
BulldogLowell, you right,thats what i meant.
I have an arduino uno with ethernet shiled, i am runing a server on it, so when the internet turn off the arduino turn off as well and the same when i power up.
How do you implement the solution you suggested?