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

JBCS rpm scripts are affecting RHEL httpd service.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • httpd 2.4.37 SP1 ER1
    • httpd 2.4.29 DR2
    • httpd
    • None
    • 4
    • +
    • Hide

      1) Install RHEL httpd service and and enable it

      1. yum install httpd; systemctl enable httpd; systemctl status httpd

      2) Install or remove the jbcs-httpd24-httpd

      1. yum install jbcs-httpd24-httpd

      3) Check and see if the RHEL httpd is still enable

      1. systemctl status httpd

      Results:
      RHEL httpd service became disabled
      Expect Results:
      RHEL httpd service remains enabled

      Show
      1) Install RHEL httpd service and and enable it yum install httpd; systemctl enable httpd; systemctl status httpd 2) Install or remove the jbcs-httpd24-httpd yum install jbcs-httpd24-httpd 3) Check and see if the RHEL httpd is still enable systemctl status httpd Results: RHEL httpd service became disabled Expect Results: RHEL httpd service remains enabled

      Customer reported that after removing the jbcs-httpd24-httpd rpm package the RHEL httpd service which was enable at the time was became disabled.

      # rpm -q --scripts jbcs-httpd24-httpd-2.4.29-17.jbcs.el7.x86_64
      preinstall scriptlet (using /bin/sh):
      # Add the "apache" user
      /usr/sbin/useradd -c "Apache" -u 48 \
      	-s /sbin/nologin -r -d /opt/rh/jbcs-httpd24/root/var/www apache 2> /dev/null || :
      postinstall scriptlet (using /bin/sh):
      
      if [ $1 -eq 1 ] ; then 
              # Initial installation 
              systemctl preset httpd.service jbcs-httpd24-htcacheclean.service >/dev/null 2>&1 || : 
      fi
      preuninstall scriptlet (using /bin/sh):
      
      if [ $1 -eq 0 ] ; then 
              # Package removal, not upgrade 
              systemctl --no-reload disable httpd.service jbcs-httpd24-htcacheclean.service > /dev/null 2>&1 || : 
              systemctl stop httpd.service jbcs-httpd24-htcacheclean.service > /dev/null 2>&1 || : 
      fi
      postuninstall scriptlet (using /bin/sh):
      
      systemctl daemon-reload >/dev/null 2>&1 || : 
      
      
      # Trigger for conversion from SysV, per guidelines at:
      # https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd
      posttrans scriptlet (using /bin/sh):
      test -f /etc/sysconfig/httpd-disable-posttrans || \
        /bin/systemctl try-restart jbcs-httpd24-httpd.service jbcs-httpd24-htcacheclean.service >/dev/null 2>&1 || :
      

              dsartzet@redhat.com Dimitris Sartzetakis (Inactive)
              rhn-support-hpham Hung Pham (Inactive)
              Jan Onderka Jan Onderka
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: