Linux

Trouble Shooting(Failed to restart haproxy.service)

babbeolicoding 2023. 6. 8. 22:23

예를 들어 haproxy 서비스를 start 할 때 아래 명령어를 실행하는 경우

systemctl start haproxy

 

아래와 같은 오류가 발생한다.

Failed to restart haproxy.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status haproxy.service' for details.

 

이런 경우 간단하게 해결할 수 있다.

sudo를 사용해서 서비스를 실행하면 된다.

sudo systemctl start haporxy