PREUN
/bin/sh
# Handle removing mcelog if [ "$1" -eq 0 ]; then systemctl disable mcelog.service &> /dev/null systemctl stop mcelog.service &> /dev/null fi
POSTIN
/bin/sh
systemctl enable mcelog.service &> /dev/null || systemctl daemon-reload &> /dev/null
POSTUN
/bin/sh
# Handle upgrading mcelog if [ "$1" -ge 1 ]; then systemctl try-restart mcelog.service &> /dev/null fi