PREUN
/bin/sh
if [ "$1" = "0" ]; then if [ -f /var/lock/subsys/smartd ]; then /sbin/service smartd stop 1>&2 fi /sbin/chkconfig --del smartd fi
POSTIN
/bin/sh
# if smartd is already running, restart it with the new daemon if [ -f /var/lock/subsys/smartd ]; then /sbin/service smartd restart 1>&2 fi