"Failed to parse PID from file /run/nginx.pid: Invalid argument" message during nginx start up

Solution Verified - Updated -

Issue

The nginx service is working, but there is an error message. Is the following message normal?

nginx systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 7.x
    • 8.x
  • nginx 1:1.14.1-8
  • rh-nginx116

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content