JON server will not start if previous instance was not shutdown gracefully and new process is running using its old PID

Solution Verified - Updated -

Issue

  • Remnant pid files can cause start scripts to exit prematurely
  • The server startup checks for the presence of a PID file
  • The server startup checks if a process with a PID exists
  • The server will not start
  • Start script will not execute if process is already running

Environment

  • Red Hat JBoss Operations Network (ON) 3.1
  • Red Hat Enterprise Linux (RHEL) 5, 6
  • Starting JBoss ON server as a service -- for example rhq-server.sh start
  • Server process had previously been running
  • Server process is not currently running
  • Existing pid file exists in the server's bin directory or in /var/run
    • rhq-jvm.pid
    • rhq-server.pid
  • Previously running server crashed or was not shutdown correctly
  • An unrelated process, using the same process id as the one stored in the server's pid file, is running

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