AMBARI-8333. Ambari-agent restart fails on Ubuntu. (aonishuk)