Waking up and shutting down FreeNAS „on demand”
What I wanted is simple. I wanted my FreeNAS box (a HP ProLiant N54L MicroServer) to be available when one of our PCs/Laptops in the household was online, but to shut it down, when no one was home (save energy, …). Also giving SWMBO some sort of „remote” to manually turn on the server was out of the question.
What I came up with as a solution was to utilize the always running TP-LINK TL-WDR4300 N750 (with OpenWrt 12.09) as a „watchdog”. If one of the „main” PCs comes online, it checks if the FreeNAS is running and if not, sends a WoL package to it, starting it.
The idea was simple, the execution not so much, especially in the case of the FreeNAS …