(Nothing Pleroma-specific in there, this article will be potentially helpful to any sysadmins)