Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-6155

systemd service file - warning PIDFile legacy path used

XMLWordPrintable

    • Workaround Exists
    • Hide

      Change line

      PIDFile=/var/run/wildfly/wildfly.pid

      to

      PIDFile=/run/wildfly/wildfly.pid

      Show
      Change line PIDFile=/var/run/wildfly/wildfly.pid to PIDFile=/run/wildfly/wildfly.pid
    • Low

      The systemd (example) service file:

      wildfly-26.1.2.Final/docs/contrib/scripts/systemd/wildfly.service

      uses a legacy path in the PIDFile reference:

      PIDFile=/var/run/wildfly/wildfly.pid

      This results in the systemd warning

      /etc/systemd/system/wildfly.service:11: PIDFile= references a path below legacy directory /var/run/, updating /var/run/wildfly/wildfly.pid → /run/wildfly/wildfly.pid

      The fix is trivial by changing the line

      PIDFile=/var/run/wildfly/wildfly.pid

      to

      PIDFile=/run/wildfly/wildfly.pid

              rhn-engineering-lgao Lin Gao
              arthurborsboom2 Arthur Borsboom (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 15 minutes
                  15m
                  Remaining:
                  Remaining Estimate - 15 minutes
                  15m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified