While restarting/starting APF if you get the below given error :

=============
hostname: Unknown host
=============

Solution :

==========
Verify whether the hostname is correct in the /etc/hosts file. If it is not correct, correct it and the issue will be resolved.
==========