Systemd error: 'Refusing to accept PID outside of service control group, acquired through unsafe symlink chain'

Solution Verified - Updated -

Environment

  • RHEL 7
  • systemd-219-67.el7_7.1

Issue

After updating systemd, a third party service fail to start. The system log has errors similar to this:

Refusing to accept PID outside of service control group, acquired through unsafe symlink chain: /var/run/puppetlabs/activemq/activemq.pid

Resolution

Please contact the third party application provider and ask them to update their service unit to be compatible with the latest versions of systemd.

Root Cause

Systemd now enforces checking the PID defined in service units before allowing the service to start.

This to a recent change in systemd.

More details about this change are available from the upstream project.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments