restart="no"
fi
-
# restart if needed
[ "$restart" = "yes" ] || exit 0
-if [ -x /usr/sbin/invoke-rc.d ]; then
- [ -x /etc/init.d/clamav-daemon ] && invoke-rc.d clamav-daemon restart
-else
- [ -x /etc/init.d/clamav-daemon ] && /etc/init.d/clamav-daemon restart
-fi
-
-if [ -x /usr/sbin/invoke-rc.d ]; then
- [ -x /etc/init.d/clamav-freshclam ] && invoke-rc.d clamav-freshclam restart
-else
- [ -x /etc/init.d/clamav-freshclam ] && /etc/init.d/clamav-freshclam restart
-fi
+service clamav-daemon restart
+service clamav-freshclam restart
#DEBHELPER#