-
Bug
-
Resolution: Done
-
Major
-
httpd 2.4.29 DR2
-
None
-
RHEL 7
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 || :