I’m running FreeBSD on my beaglebone black headless server and everything looks perfect, however, after some time idle (no user interaction) it stops responding to any incoming connection (ssh/http) but if I ping it, I get an answer back.
It was not accepting ssh or http connections, I’ve used an app called Fing to ping the BBB and it responded the pings but nothing else was responding. I tried the Wake on LAN function and it started to respond ssh and http. Coincidence or not, I was experiencing these “hangs” everyday, several times a day, after the WoL the BBB is up and running for 3 days now. I didn’t restart the BBB. I had a look on dmesg to see if there is any apm running and nothing, /var/log/messages doesn’t give me any clue, looks like nothing happened. The BBB is wired straight to my router and the IP address is locked/reserved to its MAC address.
Tried to check apm status but apm is not installed.
Also tried to install apm but no success.
Tried to check if there is any kernel module loaded (kldstat) to manage power, but it doesn’t look like the case:
Did anyone face a similar issue, or know if there is any way to prevent FreeBSD to “sleep”, or have a clue of what is happening?
apm -s
says? – Rui F Ribeiro Feb 27 '18 at 00:42/usr/local/sbin:/usr/sbin:/sbin
to yourPATH
, and [edit] the then answer to M. Ribeiro's query into your question. – JdeBP Feb 27 '18 at 08:19apm
available then something is wrong./usr/sbin/apm
is part of base in 11 RELEASE, and it is in the CD install image. – JdeBP Feb 28 '18 at 19:18