org.freedesktop.PolicyKit1 was not provided by any .service files

I have CentOS 7 and I am doing the same basic PostgreSQL install and configure. In the end, I restart PostgreSQL daemon (systemctl restart postgresql) and I got:
Failed to restart postgresql.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
Turns out have still logged into the system with user postgres and I need to go back to root to restart service:
exit
systemctl restart postgresql

No comments: