Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 0a3b13a7e600dd425d53b823903adea3 > scriptlet

mcelog-1.0-0.3.pre3.fc15.i686.rpm

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