I have Debian Wheezy 7.2 running on a HP Thin Client. This little box acts as a file server and is only used from time to time, so I don't want it to run 24/7 but it has to be available when it's needed, without any action to be taken in advance (sending a WOL packet or something). It has also an Apache Server on it, so there might be some access from outside anytime and it has to be available then.
So I thought I suspend it after X minutes of inactivity and resume it as soon as there is LAN activity. The suspend part works well with pm-hibernate
but how do I bring it back up when there is access to it?