Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-1583

Update procedure of opendj rpm does not consider ownership of processes and files

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.6.1, 2.6.0
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Environment:
      Scientific Linux 6.5 (RHEL 6.5 compatible)

      Description

      I updated the rpms on our test setup today and found a small bug
      in the RPM.

      Opendj version before 2.6.0-1
      Opendj status: running
      Opendj version after update 2.6.1-1

      We configured the service to run under the user id "opendj"
      all files under /opt/opendj belong to opendj and the
      init.d script is configured to start the opendj process
      as opendj

      Problem:
      I updated the rpm, this show no problems on console. The service
      was restarted. But afterwards
      the files under /opt/opendj belong to root. And the process
      opendj belongs also to root, because the service was automatically
      restarted in the rpm update

      Workaround:

      • Stop opendj. (don't use the init.d script because it uses
        the opendj account)
      • chown the files back to opendj. (otherwise it wouldn't start
        again because the logfiles belong to root)
      • Start opendj again

      Expected:
      I think the rpm should not restart the service but give advice to
      check the ownership of the files

      • or -
        The ownership of the files should be considered, and the init.d script
        should be used for restart

        Attachments

          Activity

            People

            • Assignee:
              matthew Matthew Swift
              Reporter:
              sterni1971 Sven Sternberger
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: