Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > c711e65ff9b666e95219e14929e0bd19 > scriptlet

smartmontools-5.37-1.amd64.rpm

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
/sbin/chkconfig --add smartd
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/smartd ] && . /etc/sysconfig/smartd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/smartd ]; then
/sbin/service smartd restart 1>&2 || :;
else
echo 'Run "/sbin/service smartd start" to start smartd service.'
fi
fi };