エラーメッセージ「New main PID does not belong to service, and PID file is not owned by root. Refusing」が表示され、サービスを開始できない
Issue
-
RHEL 7.7 へのアップグレード以降、プロパティー
Type=forking
および プロパティーPIDFile
が定義されたサービスは開始されず、そのステータスに以下のエラーメッセージが表示されます。<timestamp> <hostname> myservice[<PID>]: Starting myservice <timestamp> <hostname> myservice[<PID>]: myservice started. <timestamp> <hostname> systemd[1]: New main PID <PID> does not belong to service, and PID file is not owned by root. Refusing. <timestamp> <hostname> systemd[1]: New main PID <PID> does not belong to service, and PID file is not owned by root. Refusing. <timestamp> <hostname> systemd[1]: Failed to start myservice. <timestamp> <hostname> systemd[1]: Unit myservice.service entered failed state. <timestamp> <hostname> systemd[1]: myservice.service failed.
Environment
- Red Hat Enterprise Linux 7.7 以降
- systemd-219-67
- Red Hat Enterprise Linux 8
- systemd-239
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.