Sophie

Sophie

distrib > * > cooker > x86_64 > by-pkgid > ebc55c820ccb4151aa5bf4916b0033e4 > scriptlet

apache-mpm-prefork-2.4.2-0.1.x86_64.rpm

PREUN

/bin/sh
if [ "$1" -eq "0" ] ; then
    # Package removal, not upgrade
    /bin/systemctl --no-reload disable httpd.service httpd-worker.service httpd-event.service > /dev/null 2>&1 || :
    /bin/systemctl stop httpd.service httpd-worker.service httpd-event.service > /dev/null 2>&1 || :
fi

POSTIN

/bin/sh
# Register the httpd service
if [ "$1" -eq "1" ] ; then 
    # Initial installation 
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi

POSTUN

/bin/sh
/bin/systemctl daemon-reload >/dev/null 2>&1 || :