Uploaded image for project: 'JBoss Core Services'
  1. JBoss Core Services
  2. JBCS-91

JBCS /var/run files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • httpd 2.4.6 CR1
    • rpm
    • None

      During testing of JWS-400 Jira, I ran into something I am a little confused about. There are installed following files from JBCS httpd packages:

      # ll /opt/rh/jbcs-httpd24/root/usr/lib/tmpfiles.d
      total 8
      -rw-r--r--. 1 root root 40 Mar  4 15:53 httpd-krbcache.conf
      -rw-r--r--. 1 root root 77 Feb 12 16:34 jbcs-httpd24-httpd.conf
      
      # cat /opt/rh/jbcs-httpd24/root/usr/lib/tmpfiles.d/httpd-krbcache.conf
      d /run/httpd/krbcache 700 apache apache
      
      # cat /opt/rh/jbcs-httpd24/root/usr/lib/tmpfiles.d/jbcs-httpd24-httpd.conf 
      d /run/httpd   710 root apache
      d /run/httpd/htcacheclean   700 apache apache
      
      # rpm -qf /opt/rh/jbcs-httpd24/root/usr/lib/tmpfiles.d/httpd-krbcache.conf
      jbcs-httpd24-mod_auth_kerb-5.4-34.jbcs.el7.x86_64
      
      # rpm -qf /opt/rh/jbcs-httpd24/root/usr/lib/tmpfiles.d/jbcs-httpd24-httpd.conf
      jbcs-httpd24-httpd-2.4.6-75.jbcs.el7.x86_64
      

      My question is whether the content of those files is not actually wrong

      1. because actually it should be httpd24 instead of just httpd in that path, therefore e.g. /run/httpd24/htcacheclean?
      2. whether we should not actually point somewhere in /opt/rh/jbcs-httpd24/root/run/ directory as we need to ensure not to collide with any other package? E.g. I can install httpd package from rhel-7-server-rpms repository which installs also this file:
        # cat /usr/lib/tmpfiles.d/httpd.conf
        d /run/httpd   710 root apache
        d /run/httpd/htcacheclean   700 apache apache
        

        now these are same directories as for jbcs httpd...

      3. well and also - I am not sure whether those files are actually used at all as I can see that JBCS httpd uses /opt/rh/jbcs-httpd24/root/var/run/jbcs-httpd24-httpd/ directory instead? And jbcs-httpd24-httpd service seems to be working just fine even when /run/httpd does not exist at all.

      Could someone please clarify on this?

            gzaronik@redhat.com George Zaronikas
            jstourac@redhat.com Jan Stourac
            Jan Onderka Jan Onderka
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: