"Failed to start unit .. is masked" エラーが表示され、サービスを起動できない
Issue
- "Failed to .. is masked" メッセージが表示され、サービスを起動または有効化できません。
- "Failed to .. is masked" メッセージが表示され、systemd ユニットを起動または有効化できません。
httpd.service ユニットを起動しようとする場合の例:
# systemctl start httpd
Failed to start httpd.service: Unit httpd.service is masked.
httpd.service ユニットを有効化しようとする場合の例:
# systemctl enable httpd
Failed to enable unit: Unit file /etc/systemd/system/httpd.service is masked.
Environment
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.